Which file system automatically computes and stores hashes of files and later checks them at access to detect corruption?


1 Answer 1


Sun's ZFS does:

With ZFS, all data and metadata is checksummed using a user-selectable algorithm. Traditional file systems that do provide checksumming have performed it on a per-block basis, out of necessity due to the volume management layer and traditional file system design. The traditional design means that certain failure modes, such as writing a complete block to an incorrect location, can result in properly checksummed data that is actually incorrect. ZFS checksums are stored in a way such that these failure modes are detected and can be recovered from gracefully. All checksumming and data recovery is done at the file system layer, and is transparent to applications.

And so does Linux's btrfs: Btrfs also supports both data and metadata checksumming. Data checksumming is optional and can be disabled by mounting with -o nodatasum.

  • Further, if your filesystem is mirrored, I believe it can recover from the error. Commented Oct 15, 2011 at 23:16
  • No, neither of them stores hashes of files. All they do is block-level checksums. However, that covers the data integrity issue OP is asking about.
    – ᄂ ᄀ
    Commented Feb 15 at 16:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .