I'm guessing that a typical filesystem tends to keep some kind of checksum/CRC/hash of every file it manages, so it can detect file corruption.
Is that guess correct? And if yes, is there a way to access it?
I'm primarily interested in Windows and NTFS, but comments on other platforms would be welcome as well... Language is unimportant at this point, but I'd like to avoid assembler if possible.
OK, it appears that what I'm asking is impossible.
BTW, this was also discussed here: There is in Windows file systems a pre computed hash for each file?
In the majority of filesystems and the storage hardware they would keep checksums of allocation units, not full files.
The checksums in the hardware are probably not accessible at all in general, and the checksum of the filesystem clusters would not be very useful for the great majority of cases so would be difficult to get, if possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With