mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
Flush NTFS directory publication after replacing a saved file. Report a failed barrier as uncertain durability instead of successful Save. Flush directory-bundle objects before the manifest, including on same-writer retries, and stop before garbage collection when publication fails. Add regression tests for failed barriers, retained old objects, cached object retries, and directory handles. Keep existing Windows metadata preservation and the separate Unix flush-error policy. Validation: 130 format tests, 657 I/O corpus tests, clippy, layers, wasm, 12 acknowledged-save power cuts, six publication/cleanup cuts, and 1,368 native fault cases with exact archive comparisons. Existing preview-only failure ordering remains tracked by #7548/#7549. Fixes #7858.