mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-01 12:45:56 +00:00
TakeSnapshot read FileBasicInfo and then FileStandardInfo. A truncate or write landing between the two left a snapshot with the new size and the old LastWriteTime, and the next poll reported the same size with a newer LastWriteTime as NOTE_WRITE. guest_kqueue's FileWatch aborts on Windows when that happens after its ftruncate to 0. Read FileBasicInfo again after FileStandardInfo and retry until both reads agree. The window NTFS itself leaves, a truncate's new LastWriteTime shown before its new size, stays and is listed in the libkernel debt.