git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5170e36
)
smbd:smb2: grant a persistent open without a batch oplock.
author
Michael Adam
<obnox@samba.org>
Wed, 22 Jan 2014 14:35:27 +0000
(15:35 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 9 May 2014 10:58:21 +0000
(12:58 +0200)
persistent handles on CA + scale-out shares are granted
without the request for batch oplocks (or handle leases).
source3/smbd/smb2_create.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_create.c
b/source3/smbd/smb2_create.c
index 0cb35e0086fe2352e9f905bcbed5b7ca9f739638..f1ad26ea0d71f7afe297c37003c165732a63c7bd 100644
(file)
--- a/
source3/smbd/smb2_create.c
+++ b/
source3/smbd/smb2_create.c
@@
-982,8
+982,9
@@
static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
}
}
- if (durable_requested &&
- BATCH_OPLOCK_TYPE(result->oplock_type))
+ if (persistent_requested ||
+ (durable_requested &&
+ BATCH_OPLOCK_TYPE(result->oplock_type)))
{
status = SMB_VFS_DURABLE_COOKIE(result,
op,