summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-24 23:09:18 +0200
committerStefan Metzmacher <metze@samba.org>2013-10-05 14:04:08 +0200
commit5647287a42b528c2b7f52f94f9f722e09a146d8d (patch)
tree90b5e5ddade285e49bc28ecb4e7363263d08fff2 /source4/torture/smb2
parentd4f4d08d6c373f65ba917b563d6b00949ab586d8 (diff)
downloadsamba-5647287a42b528c2b7f52f94f9f722e09a146d8d.tar.gz
samba-5647287a42b528c2b7f52f94f9f722e09a146d8d.tar.bz2
samba-5647287a42b528c2b7f52f94f9f722e09a146d8d.zip
s4:torture:smb2: add smb2_lease_v2_create() wrapper to smb2_lease_v2_create_share()
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>
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c
index f23708dd32..97761d71a7 100644
--- a/source4/torture/smb2/util.c
+++ b/source4/torture/smb2/util.c
@@ -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)
{