summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-24 06:09:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:06 -0500
commitf2a605eeab5752e4884987496f2661368f85b271 (patch)
tree7ca13a761e79c14f2b9689f76aee989958f76b1a /source4/librpc
parent624f5f1b5c05c6205c6eb0c1ff21477e9e9a857c (diff)
downloadsamba-f2a605eeab5752e4884987496f2661368f85b271.tar.gz
samba-f2a605eeab5752e4884987496f2661368f85b271.tar.bz2
samba-f2a605eeab5752e4884987496f2661368f85b271.zip
r3939: - added "posix:fakeoplocks" option for testing with oplocks forced on
- added support for sticky write times after a setfileinfo, by using a write_time field in the DosAttrib xattr structure. (This used to be commit 4a52fae82d8305e999f94f1947daa21dab54cdfd)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/xattr.idl18
1 files changed, 17 insertions, 1 deletions
diff --git a/source4/librpc/idl/xattr.idl b/source4/librpc/idl/xattr.idl
index f7bc38605f..501ac2ab7d 100644
--- a/source4/librpc/idl/xattr.idl
+++ b/source4/librpc/idl/xattr.idl
@@ -19,6 +19,7 @@ interface xattr
/* we store basic dos attributes in a DosAttrib xattr. By
using a union we can cope with new version of this
structure more easily */
+
typedef struct {
uint32 attrib;
uint32 ea_size;
@@ -28,8 +29,23 @@ interface xattr
NTTIME change_time;
} xattr_DosInfo1;
+ const int XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME = 0x1;
+
+ typedef struct {
+ uint32 flags;
+ uint32 attrib;
+ uint32 ea_size;
+ uint64 size;
+ uint64 alloc_size;
+ NTTIME create_time;
+ NTTIME change_time;
+ NTTIME write_time; /* only used when sticky write time is set */
+ utf8string name; /* will be used for case-insensitive speedup */
+ } xattr_DosInfo2;
+
typedef union {
[case(1)] xattr_DosInfo1 info1;
+ [case(2)] xattr_DosInfo2 info2;
} xattr_DosInfo;
typedef [public] struct {
@@ -77,7 +93,7 @@ interface xattr
} xattr_DosStreams;
- /* we store the NT ACL a NTAcl xattr. It is versioned so we
+ /* we store the NT ACL a NTACL xattr. It is versioned so we
can later add other acl attribs (such as posix acl mapping)
we put this xattr in the security namespace to ensure that