Skip to contentSkip to conversation

ext4 features

DISCUSSION Chuck Ebbert 1 participant 1 message Jul 8, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 8 lines · Theodore Tso

Not four times a day, but probably once a month or two it would be a *very* good idea to do periodic sweeps of files to make sure the hard drive hasn't corrupted the files out from under you. If you have 20+ TB of data, the probability of silent data corruption starts going up. That would be justification for storing the checksum in the inode or in the EA of the file, with the kernel automatically clearing it if the file was *deliberately* changed. The goal is to detect the disk silently changing the data for you, free of charge....

Per-extent checksums on ext4 might work better.

- If you only changed a small part of a file the majority of checksums would still be valid.

- On a file with 31K of data in a 128K extent, checksumming the wasted space might cause false positives but it would be OK because that would still be actual on-disk corruption.

Signature · 2 lines
Chuck
 "You can't read a newspaper if you can't read."  --George W. Bush