On Sat, Jul 19, 2008 at 04:15:43PM -0600, Joe Peterson wrote: > Gerald Nowitzky wrote: > > When a HDD drive reads a sector from disk, it does a > > whole bunch of error recognition and correction measures. Usually there > > are, > > at least, two layers of error correction with different bit spreads on it. > > *If* this still isn't enough, it is very likely that the whole sector will > > come back completely spoiled, or, much more likely, won't come back at all > > and the drive will report a read error. > > With larger and larger disks, it is increasingly likely we will see > undetected/uncorrected errors (the drive bit error rates are not > improving - 1 in 10^17 is typical). It is clear we cannot rely > completely on the hardware to catch everything. Also, errors that > happen in the hardware between the drive and the CPU can be caused by > bad cables, interfaces, etc. > > For even single disk systems (even without mirroring), it is still valid > to have some means of verifying integrity. It is far better to know an > error occurred and which files are affected than to have it happen > silently. If caught, undetected errors will be less likely to migrate > onto backups over time and slowly corrupt data there too, making > eventual recovery impossible. That's why btrfs's checksums are so cool! > > See my blog for my personal experiences with silent hard disk errors: > > http://planet.gentoo.org/developers/lavajoe/
I've seen an interesting discussion elsewhere about this very issue, in the context of retrofitting some sort of checksumming support to FFS. The suggestion was to make 128th block a checksum block for the previous 127 blocks (scale to your liking). Without changing the filesystem format _at_all_ you could still checksum so long as you read in 128 blocks at a time. This isn't a major problem, since you'll probably want that sort of readahead anyway. Of course - that's just error detection, not error correction. Bron. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html