Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx> --- fs/Kconfig | 7 +++++++ include/linux/fs.h | 5 +++++ include/linux/xattr.h | 3 +++ 3 files changed, 15 insertions(+), 0 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index 64d44ef..ad47589 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -54,6 +54,13 @@ config FILE_LOCKING This option enables standard file locking support, required for filesystems like NFS and for the flock() system call. Disabling this option saves about 11k. +config METAGROUP + bool "Enable metagroup inode identifier" + default y + help + This option enables metagroup inode identifier. Metagroup + may be used as auxiliary owner specifier in addition to + standard uid/gid. source "fs/notify/Kconfig" diff --git a/include/linux/fs.h b/include/linux/fs.h index 0cd0105..f1139ed 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1586,6 +1586,11 @@ struct aux_attributes * and protected by i_lock similar to i_blocks+i_bytes. */ qsize_t* (*reserved_space)(struct inode *inode); #endif +#ifdef CONFIG_METAGROUP + /* Metagroup id, protected by i_mutex similar to i_uid/i_gid*/ + uid_t* (*metagroup)(struct inode *inode); +#endif + }; /* * Inode state bits. Protected by inode_lock. diff --git a/include/linux/xattr.h b/include/linux/xattr.h index fb9b7e6..efd9ed1 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h @@ -33,6 +33,9 @@ #define XATTR_USER_PREFIX "user." #define XATTR_USER_PREFIX_LEN (sizeof (XATTR_USER_PREFIX) - 1) +#define XATTR_METAGROUP "system.metagroup" +#define XATTR_METAGROUP_LEN (sizeof (XATTR_METAGROUP)) + struct inode; struct dentry; -- 1.6.6 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html