From eabe4c8fc4f8ba7ac75ceb9924cd5a90ff14470d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 8 Jun 2012 17:54:19 +0200 Subject: 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 Pair-Programmed-With: Volker Lendecke --- source3/librpc/idl/open_files.idl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/librpc') 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; } -- cgit