Activate multi channel support (switched off by default)
Guenther
This commit is contained in:
parent
45ac61fc06
commit
3062d67c50
73
samba-4.4.0rc2-mc-activate.patch
Normal file
73
samba-4.4.0rc2-mc-activate.patch
Normal file
@ -0,0 +1,73 @@
|
||||
From 7a961dba2db5861ad0d151c7fd12fb3cd8356a2e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org>
|
||||
Date: Wed, 20 Jan 2016 17:44:45 +0100
|
||||
Subject: [PATCH 1/2] param: add parameter "server multi channel support",
|
||||
defaults to off.
|
||||
|
||||
Guenther
|
||||
|
||||
Pair-Programmed-With: Michael Adam <obnox@samba.org>
|
||||
|
||||
Signed-off-by: Guenther Deschner <gd@samba.org>
|
||||
Signed-off-by: Michael Adam <obnox@samba.org>
|
||||
---
|
||||
.../smbdotconf/protocol/servermultichannelsupport.xml | 19 +++++++++++++++++++
|
||||
1 file changed, 19 insertions(+)
|
||||
create mode 100644 docs-xml/smbdotconf/protocol/servermultichannelsupport.xml
|
||||
|
||||
diff --git a/docs-xml/smbdotconf/protocol/servermultichannelsupport.xml b/docs-xml/smbdotconf/protocol/servermultichannelsupport.xml
|
||||
new file mode 100644
|
||||
index 0000000..b85bbd3
|
||||
--- /dev/null
|
||||
+++ b/docs-xml/smbdotconf/protocol/servermultichannelsupport.xml
|
||||
@@ -0,0 +1,19 @@
|
||||
+<samba:parameter name="server multi channel support"
|
||||
+ context="G"
|
||||
+ type="boolean"
|
||||
+ xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
+<description>
|
||||
+ <para>This boolean parameter controls whether
|
||||
+ <citerefentry><refentrytitle>smbd</refentrytitle>
|
||||
+ <manvolnum>8</manvolnum></citerefentry> will support
|
||||
+ SMB3 multi-channel.
|
||||
+ </para>
|
||||
+ <para>This parameter has been added with version 4.4.</para>
|
||||
+ <para>
|
||||
+ Warning: Note that this feature is considered experimental in Samba 4.4.
|
||||
+ Use it at your own risk: it may result in data corruption.
|
||||
+ </para>
|
||||
+</description>
|
||||
+
|
||||
+<value type="default">no</value>
|
||||
+</samba:parameter>
|
||||
--
|
||||
2.5.0
|
||||
|
||||
|
||||
From 1f63533b92b859e78e924cc21b7c305ecf245cc8 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Adam <obnox@samba.org>
|
||||
Date: Tue, 26 Jan 2016 08:16:51 +0100
|
||||
Subject: [PATCH 2/2] smbd: enable multi-channel if 'server multi channel
|
||||
support = yes' in the config
|
||||
|
||||
Signed-off-by: Michael Adam <obnox@samba.org>
|
||||
---
|
||||
source3/smbd/smbXsrv_client.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/source3/smbd/smbXsrv_client.c b/source3/smbd/smbXsrv_client.c
|
||||
index 87cc307..8062593 100644
|
||||
--- a/source3/smbd/smbXsrv_client.c
|
||||
+++ b/source3/smbd/smbXsrv_client.c
|
||||
@@ -490,6 +490,8 @@ NTSTATUS smbXsrv_client_create(TALLOC_CTX *mem_ctx,
|
||||
client->ev_ctx = ev_ctx;
|
||||
client->msg_ctx = msg_ctx;
|
||||
|
||||
+ client->server_multi_channel_enabled = lp_server_multi_channel_support();
|
||||
+
|
||||
client->table = talloc_move(client, &table);
|
||||
table = client->table;
|
||||
|
||||
--
|
||||
2.5.0
|
||||
|
@ -6,7 +6,7 @@
|
||||
# ctdb is enabled by default, you can disable it with: --without clustering
|
||||
%bcond_without clustering
|
||||
|
||||
%define main_release 4
|
||||
%define main_release 5
|
||||
|
||||
%define samba_version 4.4.0
|
||||
%define talloc_version 2.1.5
|
||||
@ -106,6 +106,8 @@ Source6: samba.pamd
|
||||
Source200: README.dc
|
||||
Source201: README.downgrade
|
||||
|
||||
Patch0: samba-4.4.0rc2-mc-activate.patch
|
||||
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
|
||||
Requires(pre): /usr/sbin/groupadd
|
||||
@ -676,6 +678,8 @@ and use CTDB instead.
|
||||
%prep
|
||||
%setup -q -n samba-%{version}%{pre_release}
|
||||
|
||||
%patch0 -p1 -b .samba-4.4.0rc2-mc-activate.patch
|
||||
|
||||
%build
|
||||
%global _talloc_lib ,talloc,pytalloc,pytalloc-util
|
||||
%global _tevent_lib ,tevent,pytevent
|
||||
@ -1966,6 +1970,9 @@ rm -rf %{buildroot}
|
||||
%endif # with_clustering_support
|
||||
|
||||
%changelog
|
||||
* Wed Feb 17 2016 Guenther Deschner <gdeschner@redhat.com> - 4.4.0-0.5.rc2
|
||||
- Activate multi channel support (switched off by default)
|
||||
|
||||
* Mon Feb 15 2016 Andreas Schneider <asn@redhat.com> - 4.4.0-0.4.rc2
|
||||
- More spec file fixes
|
||||
- resolves: #1306542 - scriptlet failure because of comments
|
||||
|
Loading…
Reference in New Issue
Block a user