Hi, In lustre source code, its extended attribute use name index "<FONT color=#cc0033 size=2>EXT3_XATTR_INDEX_TRUSTED</FONT>". As we know, in linux-2.6 kernel, ../fs/ext3/xattr.h has following define: /* Name indexes */ #define EXT3_XATTR_INDEX_MAX 10 #define EXT3_XATTR_INDEX_USER 1 #define EXT3_XATTR_INDEX_POSIX_ACL_ACCESS 2 #define EXT3_XATTR_INDEX_POSIX_ACL_DEFAULT 3 #define EXT3_XATTR_INDEX_TRUSTED 4 #define EXT3_XATTR_INDEX_LUSTRE 5 #define EXT3_XATTR_INDEX_SECURITY 6 why did lustre not use the "EXT3_XATTR_INDEX_LUSTRE" name index? And what the inner meaning of "<FONT color=#cc0033 size=2>EXT3_XATTR_INDEX_TRUSTED</FONT>" ? Thanks and Best regards, Li, Xiangna -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.clusterfs.com/pipermail/lustre-discuss/attachments/20060815/5a6ad159/attachment.html
lixiangna wrote:> Hi, > > In lustre source code, its extended attribute use name index > "EXT3_XATTR_INDEX_TRUSTED". > As we know, in linux-2.6 kernel, ../fs/ext3/xattr.h has following > define: > /* Name indexes */ > #define EXT3_XATTR_INDEX_MAX 10 > #define EXT3_XATTR_INDEX_USER 1 > #define EXT3_XATTR_INDEX_POSIX_ACL_ACCESS 2 > #define EXT3_XATTR_INDEX_POSIX_ACL_DEFAULT 3 > #define EXT3_XATTR_INDEX_TRUSTED 4 > #define EXT3_XATTR_INDEX_LUSTRE 5 > #define EXT3_XATTR_INDEX_SECURITY 6 > why did lustre not use the "EXT3_XATTR_INDEX_LUSTRE" name index? And > what the inner meaning of "EXT3_XATTR_INDEX_TRUSTED" ?ATTR(5) Trusted extended attributes Trusted extended attributes are visible and accessible only to pro- cesses that have the CAP_SYS_ADMIN capability (the super user usually has this capability). Attributes in this class are used to implement mechanisms in user space (i.e., outside the kernel) which keep informa- tion in extended attributes to which ordinary processes should not have access. -- Qi Yong System Software Engineer Cluster File Systems, Inc.