diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-06 01:37:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-06 01:37:14 +0000 |
commit | 4fc5a74ffa491d52afc373abcdd4257a4f105aa4 (patch) | |
tree | c6eb9af27052997cfc8c49a2c23f637cc30314b2 /source3/param/loadparm.c | |
parent | fd33412fa0ebd7de6c8749caeb111bdf4390dd47 (diff) | |
download | samba-4fc5a74ffa491d52afc373abcdd4257a4f105aa4.tar.gz samba-4fc5a74ffa491d52afc373abcdd4257a4f105aa4.tar.bz2 samba-4fc5a74ffa491d52afc373abcdd4257a4f105aa4.zip |
add a "stat cache" boolean smb.conf option. (defaults to on)
I think we need this so we can rule out stat cache bugs when dealing
with bug reports. If we ask a user to disable the stat cache and the
problem persists then we know it isn't a stat cache bug. The stat
cache code is sufficiently complicated that it can be pretty hard to
tell if it is causing problems or not.
(This used to be commit c83f3775cd8a7aad13571926cdd5949a07538771)
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 8e759cbbb0..fe3cf2f06a 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -228,6 +228,7 @@ typedef struct BOOL bOleLockingCompat; BOOL bTimestampLogs; BOOL bNTSmbSupport; + BOOL bStatCache; } global; static global Globals; @@ -643,6 +644,7 @@ static struct parm_struct parm_table[] = {"map archive", P_BOOL, P_LOCAL, &sDefault.bMap_archive, NULL, NULL, FLAG_GLOBAL}, {"mangled names", P_BOOL, P_LOCAL, &sDefault.bMangledNames, NULL, NULL, FLAG_GLOBAL}, {"mangled map", P_STRING, P_LOCAL, &sDefault.szMangledMap, NULL, NULL, FLAG_GLOBAL}, + {"stat cache", P_BOOL, P_GLOBAL, &Globals.bStatCache, NULL, NULL, 0}, {"Domain Options", P_SEP, P_SEPARATOR}, {"domain sid", P_USTRING, P_GLOBAL, &Globals.szDomainSID, NULL, NULL, 0}, @@ -850,6 +852,7 @@ static void init_globals(void) Globals.bPasswdChatDebug = False; Globals.bOleLockingCompat = True; Globals.bNTSmbSupport = True; /* Do NT SMB's by default. */ + Globals.bStatCache = True; /* use stat cache by default */ #ifdef WITH_LDAP /* default values for ldap */ @@ -1135,6 +1138,7 @@ FN_GLOBAL_BOOL(lp_unix_password_sync,&Globals.bUnixPasswdSync) FN_GLOBAL_BOOL(lp_passwd_chat_debug,&Globals.bPasswdChatDebug) FN_GLOBAL_BOOL(lp_ole_locking_compat,&Globals.bOleLockingCompat) FN_GLOBAL_BOOL(lp_nt_smb_support,&Globals.bNTSmbSupport) +FN_GLOBAL_BOOL(lp_stat_cache,&Globals.bStatCache) FN_GLOBAL_INTEGER(lp_os_level,&Globals.os_level) FN_GLOBAL_INTEGER(lp_max_ttl,&Globals.max_ttl) |