s3:param: add "async smb echo handler" option
authorStefan Metzmacher <metze@samba.org>
Mon, 22 Mar 2010 07:35:33 +0000 (08:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 22 Mar 2010 16:15:12 +0000 (17:15 +0100)
This will enable an extra forked process that will reply
to SMBecho requests, while the main process is blocked by another
request.

metze

source3/include/proto.h
source3/param/loadparm.c

index b26fa263415143c93e33d9cc8538efd8994f2f18..06d324eea432daac3bddeac0829967d93518a246 100644 (file)
@@ -4215,6 +4215,7 @@ bool lp_dos_filemode(int );
 bool lp_dos_filetimes(int );
 bool lp_dos_filetime_resolution(int );
 bool lp_fake_dir_create_times(int);
+bool lp_async_smb_echo_handler(void);
 bool lp_blocking_locks(int );
 bool lp_inherit_perms(int );
 bool lp_inherit_acls(int );
index e94c2702470c19e0d2dd2ff7f172cf14aa116186..76b0d350662829870160585edb019b03fa48e6e3 100644 (file)
@@ -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)