Whamcloud - gitweb
resize2fs: don't interpret bitmap shift while crossing flexbg as raid stride
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 15 Dec 2014 02:10:35 +0000 (21:10 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Dec 2014 02:10:42 +0000 (21:10 -0500)
commit2273a17ae8161475a9cb006f923aeb037288046a
tree113dd50a20a0b826039a3da94b83cda09f9ce8db
parent8e98899b2ffc43f151a21afb5bad85e80d6b6d85
resize2fs: don't interpret bitmap shift while crossing flexbg as raid stride

resize2fs tries to infer the RAID stride by observing differences
between the locations of adjacent block groups' block and inode
bitmaps within the block group.  If the two block groups being
compared belong to different flexbgs, however, it'll be fooled by the
large offset into thinking that the FS has an abnormally large RAID
stride.

Therefore, teach it not to get confused by crossing a flexbg.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reported-by: TR Reardon <thomas_reardon@hotmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c