Whamcloud - gitweb
resize2fs: don't try to resize below calculated minimum
authorEric Sandeen <sandeen@redhat.com>
Mon, 18 May 2009 22:11:28 +0000 (17:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 26 May 2009 02:40:49 +0000 (22:40 -0400)
commit0d04d88a8d88fc11120746bc72a5ffb7d7f05cb0
tree79306edbc87a16c5421bdf462c6ecd273d5f9a5b
parent69f7c80eaf25a642b0eb85f4557605c89acd80b6
resize2fs: don't try to resize below calculated minimum

Without a force flag, don't allow resize2fs to even start resizing
below what it thinks the minimum safe value is.

This may stop resizes which could otherwise proceed with a bit
of space still left, but seems like a reasonably safe thing to do.

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