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)
committerJeremy Allison <jra@samba.org>
Tue, 9 Dec 2014 02:44:04 +0000 (03:44 +0100)
commit5ebb1903858b4d1aadfa4e04644ec1b2b218b914
tree8e2e52a608a28d8bf4fdf8ace30c2502243f8493
parent708f87b79dcdfc58e2219e90473160eb5a22ecb6
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
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