e2fsprogs/resize
Eric Sandeen d16db7d9de resize2fs: do not clear resize inode for 0 resvd blocks
I ran into odd behavior where mkfs.ext4 of a 16T filesystem would
create a resize inode with 0 reserved blocks, and mark the resize_inode
feature.

A subsequent slight downward resize of the filesystem would remove
the resize inode, making any further offline resizing impossible.

This is especially odd in light of the fact that a large downward
resize (say, to 8T) will actually add blocks to the resize inode -
so a small resize removes it, a large resize expands it ...

commit 8ade268cf2 had added this:

  If the filesystem is grown to the point where the resize_inode is no
  longer needed, clean it up properly so e2fsck doesn't have to.

but, it seems e2fsck does not care about this situation, either.

So, simply leave the resize_inode intact in this case, and everything
seems to be happy.

Note, this is for the 1.41.xx branch.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2010-12-22 13:54:30 -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 e2fsck, resize2fs: fix a fp precision error that can lead to a seg fault 2010-07-05 20:40:41 -04:00
main.c resize2fs: handle exactly-16T filesystems in resize2fs 2010-12-16 19:17:37 -05:00
online.c resize2fs: Clarify error explaining on-line shrinking is not supported at all 2010-11-26 19:42:15 -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: do not clear resize inode for 0 resvd blocks 2010-12-22 13:54:30 -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