Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
Sounds like a homework question. Especially the way it's asked. –  Travis Aug 3 '09 at 20:22
5  
during the summer vacations? –  Adrian Panasiuk Aug 3 '09 at 20:34
1  
Good point! :-) But I could just imagine this question with a 5) in front of it on a printed piece of paper. –  Travis Aug 5 '09 at 19:32
    
@AdrianPanasiuk Now wait for someone to come and say "Sounds like someone who failed exams and got homework for summer" :D –  AnonymousLurker Aug 5 '12 at 18:37
add comment

1 Answer

up vote 11 down vote accepted

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.

share|improve this answer
    
Further, if your filesystem is mirrored, I believe it can recover from the error. –  Mechanical snail Oct 15 '11 at 23:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.