Pin the game folder by device and inode on Linux and macOS too #167

Closed
opened 2026-10-26 00:12:26 -05:00 by ethan-hann · 1 comment
Owner

The folder re-check before destructive git steps compares the link-resolved real path plus the consent marker on every OS, and also the file identity on Windows (HostPathProbe.ReadIdentity returns null elsewhere). Off Windows a folder replaced by a different directory at the same real path (rename away, new folder in its place) is caught only by the consent marker. Read st_dev/st_ino through a stat P/Invoke (the struct layout differs per platform; Mono.Unix or a small native shim may be simpler) and include it in FolderPin. There is no Windows-style folder hold off Windows.

The folder re-check before destructive git steps compares the link-resolved real path plus the consent marker on every OS, and also the file identity on Windows (HostPathProbe.ReadIdentity returns null elsewhere). Off Windows a folder replaced by a different directory at the same real path (rename away, new folder in its place) is caught only by the consent marker. Read st_dev/st_ino through a stat P/Invoke (the struct layout differs per platform; Mono.Unix or a small native shim may be simpler) and include it in FolderPin. There is no Windows-style folder hold off Windows.
ethan-hann added this to the Later milestone 2026-10-26 00:12:26 -05:00
Author
Owner
Fixed in 0.9.19 (PR 252): https://git.tortal.tech/ethan-hann/SavePoint/releases/tag/v0.9.19
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ethan-hann/SavePoint#167
No description provided.