diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-05 07:29:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:30 -0500 |
commit | 9fe5fa11d637252f1fbe79c7baf778e2d3cdade2 (patch) | |
tree | 40f628c02dcc23d3ec4724e43cb9a6fcdeb5c548 /source4/librpc/idl | |
parent | 0a8dff9e475aea5312ecc4bc283e8007ee653185 (diff) | |
download | samba-9fe5fa11d637252f1fbe79c7baf778e2d3cdade2.tar.gz samba-9fe5fa11d637252f1fbe79c7baf778e2d3cdade2.tar.bz2 samba-9fe5fa11d637252f1fbe79c7baf778e2d3cdade2.zip |
r3545: initial support for using extended attributes to hold extended dos attributes of files.
I decided to use IDL/NDR to encode the attribute, as it gives us a
simple way to describe and extend the saved attributes.
The xattr code needs to hook into quite a few more places in the pvfs
code, but this at least gets the basics done. I will start encoding
alternate data streams streams, DOS EAs etc soon using the same basic
mechanism.
I'll probably stick to "version 1" for the xattr.idl for quite a while
even though it will be changing, as I don't expect anyone to be
deploying this in production just yet. Once we have production users
we will need to keep compatibility by supporting all the old version
numbers in xattr.idl.
(This used to be commit c54253ed1b7dce1d14f43e747da61089aea87094)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r-- | source4/librpc/idl/xattr.idl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/source4/librpc/idl/xattr.idl b/source4/librpc/idl/xattr.idl new file mode 100644 index 0000000000..aa5c0a0d6a --- /dev/null +++ b/source4/librpc/idl/xattr.idl @@ -0,0 +1,35 @@ +#include "idl_types.h" + +/* + IDL structures for xattr file attributes + + this has nothing to do with RPC, we are just using our NDR/IDL + infrastructure as a convenient way to store linearised information + about a file in a architecture independent manner +*/ + +interface xattr +{ + const string XATTR_DOSATTRIB_NAME = "user.DosAttrib"; + const string XATTR_DOSATTRIB_ESTIMATED_SIZE = 64; + + /* by using a union we can cope with new version of + this structure more easily */ + typedef struct { + uint32 attrib; + uint32 ea_size; + uint64 size; + uint64 alloc_size; + NTTIME create_time; + NTTIME change_time; + } xattr_DosInfo1; + + typedef union { + [case(1)] xattr_DosInfo1 info1; + } xattr_DosInfo; + + typedef [public] struct { + uint16 version; + [switch_is(version)] xattr_DosInfo info; + } xattr_DosAttrib; +} |