- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for bitrot (0.04 sec)
-
cmd/bitrot.go
} else { errs[i] = nil } } return errs } // Returns hash sum for whole-bitrot, nil for streaming-bitrot. func bitrotWriterSum(w io.Writer) []byte { if bw, ok := w.(*wholeBitrotWriter); ok { return bw.Sum(nil) } return nil } // Returns the size of the file with bitrot protection func bitrotShardFileSize(size int64, shardSize int64, algo BitrotAlgorithm) int64 {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 7.7K bytes - Viewed (0) -
cmd/bitrot-streaming.go
} func (b *streamingBitrotWriter) Write(p []byte) (int, error) { if len(p) == 0 { return 0, nil } if b.finished { return 0, errors.New("bitrot write not allowed") } if int64(len(p)) > b.shardSize { return 0, errors.New("unexpected bitrot buffer size") } if int64(len(p)) < b.shardSize { b.finished = true } b.h.Reset() b.h.Write(p) hashBytes := b.h.Sum(nil)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jan 17 19:19:30 UTC 2025 - 6.2K bytes - Viewed (0) -
cmd/bitrot-whole.go
package cmd import ( "context" "hash" "io" ) // Implementation to calculate bitrot for the whole file. type wholeBitrotWriter struct { disk StorageAPI volume string filePath string shardSize int64 // This is the shard size of the erasure logic hash.Hash // For bitrot hash } func (b *wholeBitrotWriter) Write(p []byte) (int, error) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 2.7K bytes - Viewed (0) -
internal/config/heal/heal.go
if err = config.CheckValidKeys(config.HealSubSys, kvs, DefaultKVS); err != nil { return cfg, err } bitrot := env.Get(EnvBitrot, kvs.GetWithDefault(Bitrot, DefaultKVS)) if _, err = parseBitrotConfig(bitrot); err != nil { return cfg, fmt.Errorf("'heal:bitrotscan' value invalid: %w", err) } cfg.Bitrot = bitrot cfg.Sleep, err = time.ParseDuration(env.Get(EnvSleep, kvs.GetWithDefault(Sleep, DefaultKVS))) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Nov 04 19:06:02 UTC 2024 - 4.9K bytes - Viewed (0) -
cmd/xl-storage-format-v1.go
ModTime time.Time `json:"modTime"` // ModTime of the object `xl.meta`. Name string `json:"name"` Dir bool `json:"dir"` Mode uint32 `json:"mode"` } // ErasureInfo holds erasure coding and bitrot related information. type ErasureInfo struct { // Algorithm is the string representation of erasure-coding-algorithm Algorithm string `json:"algorithm"` // DataBlocks is the number of data blocks for erasure-coding
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 8.4K bytes - Viewed (0) -
internal/config/heal/help.go
return config.DefaultHelpPostfix(DefaultKVS, key) } // Help provides help for config values Help = config.HelpKVS{ config.HelpKV{ Key: Bitrot, Description: `perform bitrot scan on drives when checking objects during scanner` + defaultHelpPostfix(Bitrot), Optional: true, Type: "on|off", }, config.HelpKV{ Key: Sleep,
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Sep 11 21:48:54 UTC 2023 - 1.8K bytes - Viewed (0) -
docs/resiliency/resiliency-tests.sh
return 1 fi # Induce bitrot in single part -- status still green induce_bitrot "2" "/data"$((DATA_DRIVE + 1)) $FILE WANT='{ "before": { "color": "green", "missing": 0, "corrupted": 1 }, "after": { "color": "green", "missing": 0, "corrupted": 0 }, "args": {"file": "'${FILE}'", "dir": "'${DIR}'", "deep": true} }' verify_resiliency_healing "${FUNCNAME[0]}" "${WANT}" # Induce bitrot in two parts -- status becomes yellow (2 corrupted)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Dec 21 04:24:45 UTC 2024 - 20.5K bytes - Viewed (0) -
cmd/xl-storage_test.go
} } } // Test xlStorage.VerifyFile() func TestXLStorageVerifyFile(t *testing.T) { // We test 4 cases: // 1) Whole-file bitrot check on proper file // 2) Whole-file bitrot check on corrupted file // 3) Streaming bitrot check on proper file // 4) Streaming bitrot check on corrupted file // create xlStorage test setup storage, path, err := newXLStorageTestSetup(t) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0) -
docs/config/README.md
``` ~ mc admin config set alias/ heal KEY: heal manage object healing frequency and bitrot verification checks ARGS: bitrotscan (on|off) perform bitrot scan on drives when checking objects during scanner max_sleep (duration) maximum sleep duration between objects to slow down heal operation. eg. 2s
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Aug 12 18:20:36 UTC 2025 - 18.1K bytes - Viewed (1) -
docs/debugging/xl-meta/main.go
} } } fmt.Println("Reconstructed", reconstructed, "bytes and verified", verified, "bytes of partial shard with config", string(shardConfig)) } // bitrot returns a shard beginning at startOffset after doing bitrot checks. func bitrot(val []byte, startOffset, shardSize int) ([]byte, error) { var res []byte for len(val) >= 32 { want := val[:32] data := val[32:] if len(data) > shardSize {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 40.4K bytes - Viewed (0)