A power loss between rename and the data hitting disk could leave a truncated/ empty file despite the atomic rename — breaking 'never lose a byte'. Now both atomic-write paths f.Sync() the temp file before rename and best-effort fsync the parent dir after (so the rename entry is durable too): - internal/syncer/pull.go atomicWrite (pulled file content) - internal/hub/blobstore Disk.Put (stored blobs) Dir fsync is best-effort (unsupported on Windows). [fanned-out subagent: harden-fsync] |
||
|---|---|---|
| .. | ||
| chunk | ||
| config | ||
| daemon | ||
| hooks | ||
| hub | ||
| identity | ||
| ignore | ||
| manifest | ||
| secret | ||
| syncer | ||
| transport | ||
| watch | ||