From cb98e31b2458d4f6aceabd888f276ef65b2518bd Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 8 Nov 2011 18:22:47 +0100 Subject: s4:torture:smb2: add smb2_oplock_create_share() that takes sharemode as parameter --- source4/torture/smb2/util.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source4/torture/smb2/util.c') diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index db7e8a5713..094161e6eb 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -636,9 +636,15 @@ void smb2_lease_create(struct smb2_create *io, struct smb2_lease *ls, leasekey, leasestate); } +void smb2_oplock_create_share(struct smb2_create *io, const char *name, + uint32_t share_access, uint8_t oplock) +{ + smb2_generic_create_share(io, NULL, false, name, NTCREATEX_DISP_OPEN_IF, + share_access, oplock, 0, 0); +} void smb2_oplock_create(struct smb2_create *io, const char *name, uint8_t oplock) { - smb2_generic_create(io, NULL, false, name, NTCREATEX_DISP_OPEN_IF, - oplock, 0, 0); + smb2_oplock_create_share(io, name, smb2_util_share_access("RWD"), + oplock); } -- cgit