diff options
author | Jeremy Allison <jra@samba.org> | 2000-04-12 17:59:09 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-04-12 17:59:09 +0000 |
commit | 8316237e9ca83d1bd0cecdc63d7e47b44cf13181 (patch) | |
tree | daff31da47ad88886634d083c68d4da40b5095c1 /source3/param/loadparm.c | |
parent | f5da7470c3f4d1fc86dee19e85d189595344bad2 (diff) | |
download | samba-8316237e9ca83d1bd0cecdc63d7e47b44cf13181.tar.gz samba-8316237e9ca83d1bd0cecdc63d7e47b44cf13181.tar.bz2 samba-8316237e9ca83d1bd0cecdc63d7e47b44cf13181.zip |
Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,
but the structure is done enough so that Andrew can look it over and give
a yea/nay decision.
Jeremy.
(This used to be commit db96f83e34a139f47776fcbb5c1624fbf9d9943b)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 5f948f78a4..a55018446d 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -342,6 +342,7 @@ typedef struct BOOL bMap_archive; BOOL bLocking; BOOL bStrictLocking; + BOOL bPosixLocking; #ifdef WITH_UTMP BOOL bUtmp; #endif @@ -454,6 +455,7 @@ static service sDefault = True, /* bMap_archive */ True, /* bLocking */ False, /* bStrictLocking */ + True, /* bPosixLocking */ #ifdef WITH_UTMP False, /* bUtmp */ #endif @@ -814,6 +816,7 @@ static struct parm_struct parm_table[] = {"level2 oplocks", P_BOOL, P_LOCAL, &sDefault.bLevel2OpLocks, NULL, NULL, FLAG_SHARE|FLAG_GLOBAL}, {"oplock break wait time",P_INTEGER,P_GLOBAL,&Globals.oplock_break_wait_time,NULL,NULL,FLAG_GLOBAL}, {"oplock contention limit",P_INTEGER,P_LOCAL,&sDefault.iOplockContentionLimit,NULL,NULL,FLAG_SHARE|FLAG_GLOBAL}, + {"posix locking", P_BOOL, P_LOCAL, &sDefault.bPosixLocking, NULL, NULL, FLAG_SHARE|FLAG_GLOBAL}, {"strict locking", P_BOOL, P_LOCAL, &sDefault.bStrictLocking, NULL, NULL, FLAG_SHARE|FLAG_GLOBAL}, {"share modes", P_BOOL, P_LOCAL, &sDefault.bShareModes, NULL, NULL, FLAG_SHARE|FLAG_GLOBAL}, @@ -1420,6 +1423,7 @@ FN_LOCAL_BOOL(lp_map_hidden,bMap_hidden) FN_LOCAL_BOOL(lp_map_archive,bMap_archive) FN_LOCAL_BOOL(lp_locking,bLocking) FN_LOCAL_BOOL(lp_strict_locking,bStrictLocking) +FN_LOCAL_BOOL(lp_posix_locking,bPosixLocking) #ifdef WITH_UTMP FN_LOCAL_BOOL(lp_utmp,bUtmp) #endif |