Files
Joseph Magly 4a285a0484 fix(persistence): settle uncertain hard-link publishes by file identity
Grok review r1 for #682: after a hard-link error that may have succeeded,
_publish_file_no_replace compares the destination's (st_dev, st_ino) with the
temp file's before renaming: the same file counts as published by this write,
a different file is a definite FileExistsError, and only an incomparable
identity stays uncertain. The uncertain-link test is platform-correct (on
Windows a rename onto the write's own link publishes normally). Windows
winerror 1/50 (no hard links) is a definite link failure. Adds tests for a
link that took effect despite EIO, a foreign file after EIO, and a definite
link error followed by an existing destination.
2026-11-25 15:35:23 -05:00
..
2026-03-04 12:38:18 -08:00
2026-03-04 12:38:18 -08:00