1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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
This commit is contained in:
Stefan Metzmacher 2010-03-22 08:35:33 +01:00
parent b2c107ffbc
commit 752240ccdc
2 changed files with 12 additions and 0 deletions

View File

@ -4215,6 +4215,7 @@ bool lp_dos_filemode(int );
bool lp_dos_filetimes(int ); bool lp_dos_filetimes(int );
bool lp_dos_filetime_resolution(int ); bool lp_dos_filetime_resolution(int );
bool lp_fake_dir_create_times(int); bool lp_fake_dir_create_times(int);
bool lp_async_smb_echo_handler(void);
bool lp_blocking_locks(int ); bool lp_blocking_locks(int );
bool lp_inherit_perms(int ); bool lp_inherit_perms(int );
bool lp_inherit_acls(int ); bool lp_inherit_acls(int );

View File

@ -360,6 +360,7 @@ struct global {
int cups_connection_timeout; int cups_connection_timeout;
char *szSMBPerfcountModule; char *szSMBPerfcountModule;
bool bMapUntrustedToDomain; bool bMapUntrustedToDomain;
bool bAsyncSMBEchoHandler;
}; };
static struct global Globals; static struct global Globals;
@ -4352,6 +4353,15 @@ static struct parm_struct parm_table[] = {
.enum_list = NULL, .enum_list = NULL,
.flags = FLAG_ADVANCED | FLAG_GLOBAL, .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", .label = "panic action",
.type = P_STRING, .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_filetimes, bDosFiletimes)
FN_LOCAL_BOOL(lp_dos_filetime_resolution, bDosFiletimeResolution) FN_LOCAL_BOOL(lp_dos_filetime_resolution, bDosFiletimeResolution)
FN_LOCAL_BOOL(lp_fake_dir_create_times, bFakeDirCreateTimes) 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_blocking_locks, bBlockingLocks)
FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms) FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms)
FN_LOCAL_BOOL(lp_inherit_acls, bInheritACLS) FN_LOCAL_BOOL(lp_inherit_acls, bInheritACLS)