Whamcloud - gitweb
e2fsck: add support for expanding the inode size
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 00:03:37 +0000 (18:03 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Aug 2012 08:13:29 +0000 (02:13 -0600)
commit21cd37b3896b985e1f3eb9a9362d6f2b5e258c90
tree42d5aa353c0be77e10ec79796d903879bb9c663f
parent58c6e571ce8b1dd48efd59dee58906abc3fba159
e2fsck: add support for expanding the inode size

This patch adds a "-E expand_extra_isize" feature which makes sure
that _every_ used inode has i_extra_isize >= s_min_extra_isize if
s_min_extra_isize is set. Else it makes sure that i_extra_isize
of every inode is equal to sizeof(ext2_inode_large) - 128.

This is useful for the case where nanosecond timestamps or 64-bit
inode version fields are required for all inodes in the filesystem.

Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
20 files changed:
e2fsck/e2fsck.c
e2fsck/e2fsck.h
e2fsck/emptydir.c
e2fsck/pass1.c
e2fsck/pass5.c
e2fsck/problem.c
e2fsck/problem.h
e2fsck/unix.c
lib/ext2fs/ext2_err.et.in
lib/ext2fs/ext2_ext_attr.h
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
lib/ext2fs/ext_attr.c
tests/f_eofblocks/expect.1
tests/f_ext_zero_len/expect.1
tests/f_illitable_flexbg/expect.1
tests/f_invalid_bad_inode/expect.1
tests/f_jnl_32bit/expect.1
tests/f_jnl_64bit/expect.1
tests/f_unused_itable/expect.1