]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
param: allow per-share profiling mode
authorShachar Sharon <ssharon@redhat.com>
Sun, 27 Apr 2025 09:18:09 +0000 (12:18 +0300)
committerAnoop C S <anoopcs@samba.org>
Mon, 23 Jun 2025 13:04:31 +0000 (13:04 +0000)
Allow per-share profile counters by setting a configure option
'smbd profiling share = yes' on each share which wants this option
enabled. Requires global profiling to be enabled.

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
docs-xml/smbdotconf/misc/smbdprofilingext.xml [new file with mode: 0644]

diff --git a/docs-xml/smbdotconf/misc/smbdprofilingext.xml b/docs-xml/smbdotconf/misc/smbdprofilingext.xml
new file mode 100644 (file)
index 0000000..3720d38
--- /dev/null
@@ -0,0 +1,14 @@
+<samba:parameter name="smbd profiling share"
+                 context="S"
+                 type="boolean"
+                 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
+<description>
+       <para>This parameter allows the administrator to enable per-share
+       profiling support. When enabled, profile counters may be collected
+       with per-share granularity a specific shares. Takes affect only
+       when global option
+       <smbconfoption name="smbd profiling level"/> is enabled.
+       </para>
+</description>
+<value type="default">no</value>
+</samba:parameter>