1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

libsmb: Enable oplocks for smb2 cli_ntcreate

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2014-06-20 09:55:04 +00:00
parent 78827623eb
commit 5aeebc3eb0

View File

@ -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,