]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:locking: Change the data model for leases_db to cope with dynamic path renames.
authorJeremy Allison <jra@samba.org>
Fri, 5 Dec 2014 20:47:52 +0000 (12:47 -0800)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Dec 2014 20:40:12 +0000 (21:40 +0100)
commit434edebd769b061ba85355a961bb2999efa0f084
treec4cc4be6afe556770d2dec70b39a4c435365d30f
parent0547beb9dec40a6a39db482d2a2255ee5e67f008
s3:locking: Change the data model for leases_db to cope with dynamic path renames.

interface leases_db
{
        typedef [public] struct {
                GUID client_guid;
                smb2_lease_key lease_key;
        } leases_db_key;

        typedef [public] struct {
                file_id id;
                [string,charset(UTF8)] char *servicepath;
                [string,charset(UTF8)] char *base_name;
                [string,charset(UTF8)] char *stream_name;
        } leases_db_file;

        typedef [public] struct {
                uint32 num_files;
                [size_is(num_files)] leases_db_file files[];
        } leases_db_value;
}

As designed by metze.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec  9 03:44:04 CET 2014 on sn-devel-104

(cherry picked from commit 5ebb1903858b4d1aadfa4e04644ec1b2b218b914)

The last 5 patches address
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10911
SMB2 leases are not yet supported.
source3/librpc/idl/leases_db.idl
source3/locking/leases_db.c
source3/locking/leases_db.h
source3/smbd/open.c
source3/smbd/smb2_break.c