Whamcloud - gitweb
e2fsck: add support for xattrs in external inodes
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 08:04:53 +0000 (02:04 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Dec 2012 19:47:18 +0000 (12:47 -0700)
commit44585e8ab9872e0c4c4e919a62170e4d70b163de
tree286249349b046e0f9cd8ab733aed2faaa2d6732f
parent671972c12e45184b78ea8b59ef8d0a5b8a21e9a0
e2fsck: add support for xattrs in external inodes

Add support for the INCOMPAT_EA_INODE feature, which stores large
extended attributes into an external inode instead of data blocks.
The inode is referenced by the e_value_inum field (formerly the
unused e_value_block field) from the extent header, and stores the
xattr data starting at byte offset 0 in the inode data block.

The xattr inode stores the referring inode number in its i_mtime,
and the parent i_generation in its own i_generation, so that there
is a solid linkage between the two that e2fsck can verify.  The
xattr inode is itself marked with EXT4_EA_INODE_FL as well.

Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
14 files changed:
debugfs/debugfs.c
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass4.c
e2fsck/problem.c
e2fsck/problem.h
lib/e2p/feature.c
lib/ext2fs/ext2_ext_attr.h
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
lib/ext2fs/ext_attr.c
lib/ext2fs/swapfs.c
misc/mke2fs.c
misc/tune2fs.c