From 752240ccdc4dcdce7a2270ee5544e007c44bcf4d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 22 Mar 2010 08:35:33 +0100 Subject: s3:param: add "async smb echo handler" option This will enable an extra forked process that will reply to SMBecho requests, while the main process is blocked by another request. metze --- source3/param/loadparm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/param/loadparm.c') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index e94c270247..76b0d35066 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -360,6 +360,7 @@ struct global { int cups_connection_timeout; char *szSMBPerfcountModule; bool bMapUntrustedToDomain; + bool bAsyncSMBEchoHandler; }; static struct global Globals; @@ -4352,6 +4353,15 @@ static struct parm_struct parm_table[] = { .enum_list = NULL, .flags = FLAG_ADVANCED | FLAG_GLOBAL, }, + { + .label = "async smb echo handler", + .type = P_BOOL, + .p_class = P_GLOBAL, + .ptr = &Globals.bAsyncSMBEchoHandler, + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED | FLAG_GLOBAL, + }, { .label = "panic action", .type = P_STRING, @@ -5701,6 +5711,7 @@ FN_LOCAL_BOOL(lp_dos_filemode, bDosFilemode) FN_LOCAL_BOOL(lp_dos_filetimes, bDosFiletimes) FN_LOCAL_BOOL(lp_dos_filetime_resolution, bDosFiletimeResolution) FN_LOCAL_BOOL(lp_fake_dir_create_times, bFakeDirCreateTimes) +FN_GLOBAL_BOOL(lp_async_smb_echo_handler, &Globals.bAsyncSMBEchoHandler) FN_LOCAL_BOOL(lp_blocking_locks, bBlockingLocks) FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms) FN_LOCAL_BOOL(lp_inherit_acls, bInheritACLS) -- cgit