4 IDL structures for xattr file attributes
6 this has nothing to do with RPC, we are just using our NDR/IDL
7 infrastructure as a convenient way to store linearised information
8 about a file in a architecture independent manner
16 const string XATTR_DOSATTRIB_NAME = "user.DosAttrib";
17 const string XATTR_DOSATTRIB_ESTIMATED_SIZE = 64;
19 /* we store basic dos attributes in a DosAttrib xattr. By
20 using a union we can cope with new version of this
21 structure more easily */
32 [case(1)] xattr_DosInfo1 info1;
35 typedef [public] struct {
37 [switch_is(version)] xattr_DosInfo info;
41 /* we store DOS style extended attributes in a DosEAs xattr */
42 const string XATTR_DOSEAS_NAME = "user.DosEAs";
49 typedef [public] struct {
51 [size_is(num_eas)] xattr_EA *eas;
54 /* we store stream information in this xattr structure. Then
55 the streams themselves are stored in
56 user.DosStream.STREAMNAME or in external files, according
58 const string XATTR_DOSSTREAMS_NAME = "user.DosStreams";
60 const int XATTR_STREAM_FLAG_INTERNAL = 0x00000001;
62 /* stream data is stored in attributes with the given prefix */
63 const string XATTR_DOSSTREAM_PREFIX = "user.DosStream.";
65 const int XATTR_MAX_STREAM_SIZE = 0x4000;
74 typedef [public] struct {
76 [size_is(num_streams)] xattr_DosStream *streams;
80 /* we store the NT ACL a DosAcl xattr. It is versioned so we
81 can later add other acl attribs (such as posix acl
84 we put this xattr in the security namespace to ensure that
85 only trusted users can write to the ACL
87 const string XATTR_DOSACL_NAME = "security.DosAcl";
90 [case(1)] security_descriptor *sd;
93 typedef [public] struct {
95 [switch_is(version)] xattr_DosAclInfo info;