Whamcloud - gitweb
resize2fs: Fix resizing filesystems with large inodes
authorTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2008 01:20:40 +0000 (20:20 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2008 12:00:12 +0000 (08:00 -0400)
commitedfd9b0a9fe7b90f56da981ca26d5233cc3749d6
tree415982d54b367adaeabe1b6c00b41a3f86d84f88
parentdd232049d19112d46d4b296c1b253ef05e9dc67c
resize2fs: Fix resizing filesystems with large inodes

Use ext2fs_get_next_inode_full() in resize2fs and clean up large inode
handling; previous attempt was not properly handling all cases, and
was incorrectly setting i_extra_isize.  This caused some extended
attributes to get removed or randomly assigned to other inodes as a
result of the resize, which can be unfortunate on systems using
SELinux.

The previous commit didn't fix things completely on big-endian systems
like PowerPC.

Addresses-Red-Hat-Bugzilla: #434893

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