Whamcloud - gitweb
e2fsck: fix journal block tag checksum verification
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 4 Jun 2013 01:50:16 +0000 (21:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 8 Jun 2013 21:03:04 +0000 (17:03 -0400)
commitbd78b1dae99b0f0d3c5456478c320f5ac0a98584
tree65c4f4907f27f76c41c29b91dfe0c0135177fa8e
parente07b71f294fa41fcf6ad29b706b1b953c3b93169
e2fsck: fix journal block tag checksum verification

Al Viro complained of a ton of bogosity with regards to the jbd2 block tag
header checksum.  This one checksum is 16 bits, so cut off the upper 16 bits
and treat it as a 16-bit value and don't mess around with be32* conversions.
Fortunately metadata checksumming is still "experimental" and not in a shipping
e2fsprogs, so there should be few users affected by this.

This is the e2fsprogs version of the kernel patch.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/recovery.c