Re:Notes on ExFAT and Reliability (2021)
by farrisbris on Tuesday November 29, 2022 @10:37AM
(#33788834)
I just experienced an interesting exFAT issue yesterday. Apparently it has a 2 second resolution on mtime. Got a bug report and just formatted a new partition with exFAT in windows 11 and it was unable to set modified timestamp to an odd number. Or rather i got no error when setting it, but it did get rounded up if it was odd. The wiki entry for exfat says it has 10ms resolution up from 2s in FAT, but that didn't seem to be the case for me. I thought about it being FAT and windows just lying to me but i couldn't confirm that was the case.
[ Parent
| on HN ]
Re:Notes on ExFAT and Reliability (2021)
by fredoralive on Tuesday November 29, 2022 @12:11PM
(#33790241)
Looking at the specification[1], it seems ExFAT uses an old style 2 second granularity FAT timestamp, but with an extra separate single byte field to give 0-199 * 10ms extra for fine(r) grained time stamps. It's possible Windows just ignores the high resolution field? Bit odd for Microsoft's own implementation to ignore their own enhancements though.
I do have to ask the idiot question that you are sure you formatted the drive as ExFAT and not FAT32?
[1] https://learn.microsoft.com/en-us/windows/win32/fileio/exfat...
Re:Notes on ExFAT and Reliability (2021)
by farrisbris on Wednesday November 30, 2022 @04:58AM
(#33798836)
I'm quite sure yes. https://learn.microsoft.com/en-us/windows/win32/api/fileapi/... returns exFAT and it says exfat for that partition in the disk management tool.