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 | db96f83e34a139f47776fcbb5c1624fbf9d9943b (patch) | |
tree | 7b0b82d31f7c10b4edfcef90941b8f9be467d184 /source/param | |
parent | 5086e6425f3630d8f5ca1e25a333eb97fdf86e93 (diff) | |
download | samba-db96f83e34a139f47776fcbb5c1624fbf9d9943b.tar.gz samba-db96f83e34a139f47776fcbb5c1624fbf9d9943b.tar.xz samba-db96f83e34a139f47776fcbb5c1624fbf9d9943b.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.
Diffstat (limited to 'source/param')
-rw-r--r-- | source/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 5f948f78a4e..a55018446db 100644 --- a/source/param/loadparm.c +++ b/source/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 |