Whamcloud - gitweb
resize2fs: don't require fsck to print min size
authorEric Sandeen <sandeen@sandeen.net>
Mon, 15 Dec 2014 00:08:59 +0000 (19:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Dec 2014 00:12:01 +0000 (19:12 -0500)
commit0462fd6db55de28d7e087d8d06ab20339acd8f67
tree486d6060643024c408ee108f366de08126ba33a2
parent63b4cbb8bc8602d5dfe80413005142a7b59c25ef
resize2fs: don't require fsck to print min size

My previous change ended up requiring that the filesystem
be fsck'd after the last mount, even if we are only querying
the minimum size.  This is a bit draconian, and it burned
the Fedora installer, which wants to calculate minimum size
for every filesystem in the box at install time, which in turn
requires a full fsck of every filesystem.

Try this one more time, and separate out the tests to make things
a bit more clear.  If we're only printing the min size, don't
require the fsck, as this is a bit less dangerous/critical.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c