OSDN Git Service

ext4_utils: add filesystem capabilities support.
authorNick Kralevich <nnk@google.com>
Thu, 7 Feb 2013 22:21:34 +0000 (14:21 -0800)
committerNick Kralevich <nnk@google.com>
Wed, 20 Feb 2013 20:51:09 +0000 (12:51 -0800)
commit4df62f342dbbe2f5cca831ce789dc0426d32ec03
treee98ace44bcfa58e47f95bd321938d6cfd0a044c0
parentf070d34601fa2f13e74897253be3a2b3681e4014
ext4_utils: add filesystem capabilities support.

Add support for specifying filesystem capabilities when
creating a new filesystem.

The combination of SELinux extended attributes plus
filesystem capability extended attributes is too big
to fit inside one inode entry. Because of this, I added
support to ext4_utils to create an xattr block and link
the inode to that block. We continue to try to fit
everything inside the inode if possible, but fall over to
creating a block if the extended attribute is too big.

Change-Id: I40ebb63975b15ecd8c565486e171b4d50cd4dfaa
ext4_utils/allocate.c
ext4_utils/allocate.h
ext4_utils/contents.c
ext4_utils/contents.h
ext4_utils/ext4_utils.c
ext4_utils/ext4_utils.h
ext4_utils/make_ext4fs.c
ext4_utils/xattr.h