[Btrfs-devel] Is crc32 adequate to detect real-life data corruption in filesystem's blocks?

sftf sftf-misc at mail.ru
Tue Jan 8 20:33:04 PST 2008

>> What about multiple errors detection with crc32?
>> Is it work?

CM> This will depend on who you ask.  Over the long term, btrfs will
CM> support a number of stronger checksums for metadata and data.

CM> There are 256 bits reserved in the metadata blocks, and the file data
CM> checksums don't require a fixed size, so it will be possible to have
CM> different sized checksums on different files.

Are checksums is per device block or per extent or per file?

CM> In practice, 32 bit crcs are a good tradeoff between performance and
CM> safety.  Some people will surely want better, and we'll examine other
CM> algorithms as the FS matures.

And what if the (block with) checksums will be corrupted but not data itself?

More information about the Btrfs-devel mailing list