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

docs-xml: add "smbd max async dosmode"

The parameter is added to the lists of ignored-paremteres in the
samba.docs tests, as the given default "aio max threads * 2" works only
as manpage string.

"aio max threads" can only be calculated at run time and requires a
handle to a pthreadpool_tevent which loadparm will never have.

Because of that lp_smbd_max_async_dosmode() will always return 0 as
default and it's up to the caller to calculate "aio max threads * 2" if
lp_smbd_max_async_dosmode() returns 0. Cf the next commit.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2018-12-02 09:22:56 +01:00 committed by Jeremy Allison
parent 54b7132d10
commit 14132e89b4
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<samba:parameter name="smbd max async dosmode"
context="S"
type="integer"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
This parameter controls how many async operations to fetch the DOS
attributes the fileserver will queue when doing directory listings.
</para>
</description>
<value type="default">aio max threads * 2</value>
</samba:parameter>

View File

@ -125,6 +125,7 @@ class SmbDotConfTests(TestCase):
'include system krb5 conf',
'rpc server dynamic port range',
'mit kdc command',
'smbd max async dosmode',
])
def setUp(self):
@ -247,6 +248,7 @@ class SmbDotConfTests(TestCase):
exceptions = set([
'printing',
'rpc server dynamic port range',
'smbd max async dosmode',
])
if param in exceptions: