summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-27 20:32:02 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-27 20:32:02 +1100
commit4fc27c9969960dfef73ad80438d274e0f45e119e (patch)
treeea558da1f71c52f8c1daa13de7eff7ecb72d322e /source4/ntvfs/common
parent83ea6d5f55dcb18da48cee880624ed4530f9c05f (diff)
downloadsamba-4fc27c9969960dfef73ad80438d274e0f45e119e.tar.gz
samba-4fc27c9969960dfef73ad80438d274e0f45e119e.tar.bz2
samba-4fc27c9969960dfef73ad80438d274e0f45e119e.zip
Make oplocks a per-share option.
This even goes via the share options system (a very odd layer of indirection). Andrew Bartlett (This used to be commit f2c65f9907760b8852b70c53637388f08751ba88)
Diffstat (limited to 'source4/ntvfs/common')
-rw-r--r--source4/ntvfs/common/opendb_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ntvfs/common/opendb_tdb.c b/source4/ntvfs/common/opendb_tdb.c
index be78e09958..40a1d27f30 100644
--- a/source4/ntvfs/common/opendb_tdb.c
+++ b/source4/ntvfs/common/opendb_tdb.c
@@ -101,8 +101,7 @@ static struct odb_context *odb_tdb_init(TALLOC_CTX *mem_ctx,
odb->ntvfs_ctx = ntvfs_ctx;
- /* leave oplocks disabled by default until the code is working */
- odb->oplocks = lp_parm_bool(ntvfs_ctx->lp_ctx, NULL, "opendb", "oplocks", false);
+ odb->oplocks = share_bool_option(ntvfs_ctx->ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
odb->lease_ctx = sys_lease_context_create(ntvfs_ctx->config, odb,
ntvfs_ctx->event_ctx,