Whamcloud - gitweb
ext2fs_set_gdt_csum(): Force the last block group to have a valid block bitmap
authorAndreas Dilger <adilger@dilger.ca>
Mon, 31 Mar 2008 12:34:10 +0000 (08:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 Mar 2008 18:28:37 +0000 (14:28 -0400)
commitd78ea441a2e52f776cc192cc7d1d8b3be2abd971
tree8cec3f3e2aaaf0db2349b2899b4dc710f7ba0db6
parent80fc4e698a308de22ace6179f45e0bb67befa74b
ext2fs_set_gdt_csum(): Force the last block group to have a valid block bitmap

Never set the UNINIT_BLOCKS flag for the last group since the kernel
doesn't handle the case graefully if there is a full set of blocks in
each blockgroup 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>
lib/ext2fs/csum.c
tests/m_uninit/expect.1