OSDN Git Service

e2fsck: check htree leaf block checksums
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 22 Jul 2015 04:06:43 +0000 (00:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Jul 2015 04:06:43 +0000 (00:06 -0400)
commit95eca2e9228841496a5864605259bf908a5b2d0a
treef3f163c221a5ad57163ccbbb632ac09b7b2684f8
parente3dd5c6f1a1cf9baeb7073fe2ecc5214fdfe0621
e2fsck: check htree leaf block checksums

We weren't verifying the checksum of an htree leaf block due to a
coding error that marked all htree blocks as not having checksums.
While we're at it, fix the error message that gets displayed so that
it doesn't print a meaningless block offset.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass2.c
e2fsck/problem.c
tests/f_dir_bad_csum/expect.1
tests/f_htree_leaf_csum/expect.1 [new file with mode: 0644]
tests/f_htree_leaf_csum/expect.2 [new file with mode: 0644]
tests/f_htree_leaf_csum/image.gz [new file with mode: 0644]
tests/f_htree_leaf_csum/name [new file with mode: 0644]