Whamcloud - gitweb
e2fsck: Add check to enforce a valid block bitmap in last block group
authorAndreas Dilger <adilger@dilger.ca>
Mon, 31 Mar 2008 16:14:22 +0000 (12:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 Mar 2008 18:28:38 +0000 (14:28 -0400)
commit0d5439c8e0bc63438f45315755e7f0d9dcb09ccf
tree88869bb9e6897b185d42feeb53d4c80740bde69a
parent0d47b68c2f00959665eecacaf2a2c90b546b3811
e2fsck: Add check to enforce a valid block bitmap in last block group

Add a check for the UNINIT_BLOCKS flag set in the last group.  The kernel
patch doesn't handle this gracefully, because it assumes there are a full
set of blocks in each group marked UNINIT_BLOCKS.  The kernel should be
fixed up, but in the meantime this avoids hitting the problem, and is
more consistent with lazy_bg not marking the last group UNINIT.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/problem.c
e2fsck/problem.h
e2fsck/super.c