summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-12 02:01:53 +0000
committerJeremy Allison <jra@samba.org>2002-12-12 02:01:53 +0000
commit120ead2f941810aed1387c7ed6b74fea0eb2f865 (patch)
tree147a51ec0569d7586cc449b19238aa21368f2efc /source3/param
parent7dd847ba9c10be196b5d02f9593c642666855470 (diff)
downloadsamba-120ead2f941810aed1387c7ed6b74fea0eb2f865.tar.gz
samba-120ead2f941810aed1387c7ed6b74fea0eb2f865.tar.bz2
samba-120ead2f941810aed1387c7ed6b74fea0eb2f865.zip
Added "kernel change notify" boolean to allow easier valgrind testing.
Jeremy. (This used to be commit ac856fbb96e5ed21992972805b27cc8c3f9377df)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 101e8e7ad1..009a94ff7f 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -272,6 +272,7 @@ typedef struct
BOOL bUseSpnego;
BOOL bUnixExtensions;
BOOL bDisableNetbios;
+ BOOL bKernelChangeNotify;
int restrict_anonymous;
int name_cache_timeout;
param_opt_struct *param_opt;
@@ -864,6 +865,7 @@ static struct parm_struct parm_table[] = {
{"deadtime", P_INTEGER, P_GLOBAL, &Globals.deadtime, NULL, NULL, FLAG_DEVELOPER},
{"getwd cache", P_BOOL, P_GLOBAL, &use_getwd_cache, NULL, NULL, FLAG_DEVELOPER},
{"keepalive", P_INTEGER, P_GLOBAL, &keepalive, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
+ {"kernel change notify", P_BOOL, P_GLOBAL, &Globals.bKernelChangeNotify, NULL, NULL, FLAG_DEVELOPER},
{"lpq cache time", P_INTEGER, P_GLOBAL, &Globals.lpqcachetime, NULL, NULL, FLAG_DEVELOPER},
{"max smbd processes", P_INTEGER, P_GLOBAL, &Globals.iMaxSmbdProcesses, NULL, NULL, FLAG_DEVELOPER},
@@ -1335,6 +1337,7 @@ static void init_globals(void)
Globals.min_wins_ttl = 60 * 60 * 6; /* 6 hours default. */
Globals.machine_password_timeout = 60 * 60 * 24 * 7; /* 7 days default. */
Globals.change_notify_timeout = 60; /* 1 minute default. */
+ Globals.bKernelChangeNotify = True; /* On if we have it. */
Globals.ReadSize = 16 * 1024;
Globals.lm_announce = 2; /* = Auto: send only if LM clients found */
Globals.lm_interval = 60;
@@ -1667,6 +1670,7 @@ FN_GLOBAL_BOOL(lp_use_mmap, &Globals.bUseMmap)
FN_GLOBAL_BOOL(lp_unix_extensions, &Globals.bUnixExtensions)
FN_GLOBAL_BOOL(lp_use_spnego, &Globals.bUseSpnego)
FN_GLOBAL_BOOL(lp_hostname_lookups, &Globals.bHostnameLookups)
+FN_GLOBAL_BOOL(lp_kernel_change_notify, &Globals.bKernelChangeNotify)
FN_GLOBAL_INTEGER(lp_os_level, &Globals.os_level)
FN_GLOBAL_INTEGER(lp_max_ttl, &Globals.max_ttl)
FN_GLOBAL_INTEGER(lp_max_wins_ttl, &Globals.max_wins_ttl)