e2fsprogs/resize
Jan Kara ba8bfa1a6d resize2fs: take s_first_data_block into account for resize2fs -M
calculate_minimum_resize_size() forgot to account s_first_data_block
into minimum filesystem size. Thus in case the size of filesystem was
such that the last group had the minimal size (50 blocks + metadata
overhead), the code in adjust_fs_info() decided the group is unneeded,
removed it, and in some cases the resizing then failed with ENOSPC.

Fix the issue by properly accounting for s_first_data_block in
calculate_minimum_resize_size().

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2012-02-17 14:32:18 -05: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 Fix spelling errors pointed out by translators 2011-10-08 13:32:00 -04:00
main.c libext2fs: make ext2fs_open_file() always use 3 arguments instead of varargs 2011-10-06 13:28:07 -04:00
online.c resize2fs: treat EINVAL to mean the new resize ioctl does not exist 2011-11-20 16:16:41 -05:00
resize2fs.8.in resize2fs.8.in: Document that resize2fs -p only works on offline resizes 2010-11-26 19:35:30 -05:00
resize2fs.c resize2fs: take s_first_data_block into account for resize2fs -M 2012-02-17 14:32:18 -05:00
resize2fs.h resize2fs: Fix up to be 64-bit block number safe 2010-06-13 18:00:00 -04:00
sim_progress.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
test_extent.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
test_extent.in Many files: 1997-06-17 03:52:12 +00:00