git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7882762
)
libsmb: Enable oplocks for smb2 cli_ntcreate
author
Volker Lendecke
<vl@samba.org>
Fri, 20 Jun 2014 09:55:04 +0000
(09:55 +0000)
committer
Volker Lendecke
<vl@samba.org>
Sat, 21 Jun 2014 18:38:11 +0000
(20:38 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clifile.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index aee1745af4dc27b4b4f471314868f81c09001a16..3ec5e9aafb1c07177f2a9ea0ec725238a247bd75 100644
(file)
--- a/
source3/libsmb/clifile.c
+++ b/
source3/libsmb/clifile.c
@@
-1950,6
+1950,11
@@
struct tevent_req *cli_ntcreate_send(TALLOC_CTX *mem_ctx,
if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
state->recv = cli_smb2_create_fnum_recv;
+
+ if (cli->use_oplocks) {
+ create_flags |= REQUEST_OPLOCK|REQUEST_BATCH_OPLOCK;
+ }
+
subreq = cli_smb2_create_fnum_send(
state, ev, cli, fname, create_flags, desired_access,
file_attributes, share_access, create_disposition,