s4:torture:smb2: add smb2_lease_v2_create() wrapper to smb2_lease_v2_create_share()
authorMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 21:09:18 +0000 (23:09 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 5 Oct 2013 12:04:08 +0000 (14:04 +0200)
that sets share all. similar to smb2_lease_create()

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/util.c

index f23708dd32384a9271999b85ce5e51987de63fb9..97761d71a78c342da56dff59bc898150a3829afe 100644 (file)
@@ -758,6 +758,22 @@ void smb2_lease_v2_create_share(struct smb2_create *io,
        }
 }
 
+void smb2_lease_v2_create(struct smb2_create *io,
+                         struct smb2_lease *ls,
+                         bool dir,
+                         const char *name,
+                         uint64_t leasekey,
+                         const uint64_t *parentleasekey,
+                         uint32_t leasestate,
+                         uint16_t lease_epoch)
+{
+       smb2_lease_v2_create_share(io, ls, dir, name,
+                                  smb2_util_share_access("RWD"),
+                                  leasekey, parentleasekey,
+                                  leasestate, lease_epoch);
+}
+
+
 void smb2_oplock_create_share(struct smb2_create *io, const char *name,
                              uint32_t share_access, uint8_t oplock)
 {