@@ -56,6 +56,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 PROJECT_ID
+ bool "Enable project inode identifier"
+ default y
+ help
+ This option enables project inode identifier. Project ID
+ may be used as auxiliary owner specifier in addition to
+ standard uid/gid.
source "fs/notify/Kconfig"
@@ -1670,6 +1670,7 @@ struct super_operations {
int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t);
int (*nr_cached_objects)(struct super_block *);
void (*free_cached_objects)(struct super_block *, int);
+ u32 (*get_prjid)(const struct inode *inode);
};
/*
@@ -61,6 +61,9 @@
#include <linux/types.h>
+#define XATTR_PRJID "system.project_id"
+#define XATTR_PRJID_LEN (sizeof (XATTR_PRJID))
+
struct inode;
struct dentry;
This patch add project inode identifier. Project ID may be used as auxiliary owner specifier in addition to standard uid/gid. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> --- fs/Kconfig | 7 +++++++ include/linux/fs.h | 1 + include/linux/xattr.h | 3 +++ 3 files changed, 11 insertions(+), 0 deletions(-)