3 ms·
> a filesystem should automatically check and repair data as it is accessed rather than processing the entire filesystem tree upon every check or repair job. E
by ranger_danger 4y ago
> a filesystem should automatically check and repair data as it is accessed rather than processing the entire filesystem tree upon every check or repair job.
Except this is not sufficient. Flash storage for example is especially susceptible to random bitrot of data over time regardless of whether or not it is ever accessed or even powered on. Ever tried to plug in an old USB stick or SD card only to find out it was totally busted or unreadable? Scanning the entire filesystem and re-checksumming everything is therefore completely necessary.
- iforgotpassword 4y agoThere is the muxfs audit subcommand though that does that. I guess the author was trying to say that it shouldn't be the only way to do it, as that opens the door for silently returning corrupted data in-between runs, so you start pondering how low you should set the interval between audit runs etc. I guess with automatic checks on every access you can feel safe running the audit every other month or so.