diff options
author | Michael Adam <obnox@samba.org> | 2012-06-08 17:54:19 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-09-08 19:48:20 +0200 |
commit | eabe4c8fc4f8ba7ac75ceb9924cd5a90ff14470d (patch) | |
tree | ba544598380ea8a5a96f8403179081e9e0f85601 /source3/librpc/idl | |
parent | 1d012a6780c543620413b24237cb7e9b97a6e3bc (diff) | |
download | samba-eabe4c8fc4f8ba7ac75ceb9924cd5a90ff14470d.tar.gz samba-eabe4c8fc4f8ba7ac75ceb9924cd5a90ff14470d.tar.bz2 samba-eabe4c8fc4f8ba7ac75ceb9924cd5a90ff14470d.zip |
s3:vfs_default: add basic support for durable handle request and reconnect
We only grant durable handles for CIFS/SMB2 only access,
that means "kernel oplocks", "kernel share modes" and "posix locking"
need to be set to "no".
For now we also don't grant durable handles if delete on close
is active on the handle.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Pair-Programmed-With: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/librpc/idl')
-rw-r--r-- | source3/librpc/idl/open_files.idl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/librpc/idl/open_files.idl b/source3/librpc/idl/open_files.idl index 98e1c32db0..eb0dfa08ae 100644 --- a/source3/librpc/idl/open_files.idl +++ b/source3/librpc/idl/open_files.idl @@ -46,4 +46,20 @@ interface open_files uint8 modified; [ignore] db_record *record; } share_mode_data; + + /* these are 0x30 (48) characters */ + const string VFS_DEFAULT_DURABLE_COOKIE_MAGIC = + "VFS_DEFAULT_DURABLE_COOKIE_MAGIC "; + const uint32 VFS_DEFAULT_DURABLE_COOKIE_VERSION = 0; + + typedef [public] struct { + [value(VFS_DEFAULT_DURABLE_COOKIE_MAGIC),charset(DOS)] uint8 magic[0x30]; + [value(VFS_DEFAULT_DURABLE_COOKIE_VERSION)] uint32 version; + boolean8 allow_reconnect; + file_id id; + [string,charset(UTF8)] char *servicepath; + [string,charset(UTF8)] char *base_name; + hyper initial_allocation_size; + hyper position_information; + } vfs_default_durable_cookie; } |