e2fsprogs/resize
Eric Sandeen 5fa92bc768 resize2fs: don't print minimum size if fs is not clean
Right now, resize2fs -P on a dirty filesystem will give you a number;
however, it's probably wrong if the fs is not clean:

# resize2fs -P myimage.img
resize2fs 1.41.9 (22-Aug-2009)
Estimated minimum size of the filesystem: 75623

# e2fsck -fy myimage.img
e2fsck 1.41.9 (22-Aug-2009)
myimage.img: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

myimage.img: ***** FILE SYSTEM WAS MODIFIED *****
myimage.img: 9530/53760 files (0.1% non-contiguous), 24737/98304 blocks

# resize2fs -P myimage.img
resize2fs 1.41.9 (22-Aug-2009)
Estimated minimum size of the filesystem: 32165

We should issue the same "Please run e2fsck ..." message for
-P as we do for an actual resize request.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2010-05-12 12:44:56 -04:00
..
Makefile.in Don't use in-tree header files if using system uuid or blkid libraries 2009-10-04 14:45:08 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
extent.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
main.c resize2fs: don't print minimum size if fs is not clean 2010-05-12 12:44:56 -04:00
online.c resize2fs: Fix data corruption bug when shrinking the inode table for ext4 2009-04-18 22:32:03 -04:00
resize2fs.8.in Update man pages to include ext4 in the synposis, instead of just "ext2/ext3" 2009-05-30 12:34:28 -04:00
resize2fs.c resize2fs: Fix fix uninit group test accessing invalid memory 2010-02-05 22:50:19 -05:00
resize2fs.h resize2fs: Fix data corruption bug when shrinking the inode table for ext4 2009-04-18 22:32:03 -04:00
sim_progress.c resize2fs: Fix potential memory corruption in ext2fs_progress_init() 2008-10-01 19:42:57 -04:00
test_extent.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
test_extent.in Many files: 1997-06-17 03:52:12 +00:00