Whamcloud - gitweb
resize2fs: don't exit if shrinking sparse_super2 fs to one bg
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 14 Dec 2014 03:06:15 +0000 (22:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 Dec 2014 03:06:15 +0000 (22:06 -0500)
commit4495c5a0eb833cafaa2c5480fecd3f10a4d6609c
treeaa0c873c2643943478a200bc9087e4d6d6206aa3
parent5effd0a02283922dd53102ff409a4382fa1dfed7
resize2fs: don't exit if shrinking sparse_super2 fs to one bg

If we're shrinking a sparse_super2 filesystem to a single block group,
the superblock will be in block 0.  This is perfectly valid (for block
group 0 with a blocksize > 1024) so don't exit.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/resize2fs.c