Whamcloud - gitweb
resize2fs: Fix data corruption bug when growing an ext4 filesystem off-line
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Apr 2009 17:31:54 +0000 (13:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Apr 2009 17:31:54 +0000 (13:31 -0400)
commit1ac84a948dc0cb867fb33b43ab1d67c71d207cc8
treea53f93bbdaed3bcd28df7e465831b90f54725855
parentc927bec16f26c9ed4303a6c1c3a7403b06a6bcec
resize2fs: Fix data corruption bug when growing an ext4 filesystem off-line

When allocating a new set of block group metadata as part of growing
the filesystem, the resize2fs code assumes that the bitmap and inode
table blocks are in their own block group; an assumption which is
changed by the flex_bg feature.  This commit works around the problem
by temporarily turning off flex_bg while allocating the new block
group metadata, to avoid potentially overwriting previously allocated
data blocks.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/resize2fs.c