git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9a3d4
)
s3:smbd only initialize kernel oplocks if they are enabled for a share
author
Christian Ambach
<ambi@samba.org>
Fri, 30 Mar 2012 14:00:15 +0000
(16:00 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 11 Apr 2012 18:11:40 +0000
(11:11 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/service.c
patch
|
blob
|
history
diff --git
a/source3/smbd/service.c
b/source3/smbd/service.c
index c4d3486cdf6b662c816bed34e7bbc83345af8591..914cec86d8d87eca0e6d70b1417ba8ba0c449e5d 100644
(file)
--- a/
source3/smbd/service.c
+++ b/
source3/smbd/service.c
@@
-709,6
+709,10
@@
static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
}
}
+ if (lp_kernel_oplocks(snum)) {
+ init_kernel_oplocks(conn->sconn);
+ }
+
/*
* Fix compatibility issue pointed out by Volker.
* We pass the conn->connectpath to the preexec