From 3062d67c50ef2f2cb5cc5ea64a1fd8b2f54ae822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Wed, 17 Feb 2016 14:52:00 +0100 Subject: [PATCH] Activate multi channel support (switched off by default) Guenther --- samba-4.4.0rc2-mc-activate.patch | 73 ++++++++++++++++++++++++++++++++ samba.spec | 9 +++- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 samba-4.4.0rc2-mc-activate.patch diff --git a/samba-4.4.0rc2-mc-activate.patch b/samba-4.4.0rc2-mc-activate.patch new file mode 100644 index 0000000..c2d3049 --- /dev/null +++ b/samba-4.4.0rc2-mc-activate.patch @@ -0,0 +1,73 @@ +From 7a961dba2db5861ad0d151c7fd12fb3cd8356a2e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?G=C3=BCnther=20Deschner?= +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 + +Signed-off-by: Guenther Deschner +Signed-off-by: Michael Adam +--- + .../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 @@ ++ ++ ++ This boolean parameter controls whether ++ smbd ++ 8 will support ++ SMB3 multi-channel. ++ ++ This parameter has been added with version 4.4. ++ ++ Warning: Note that this feature is considered experimental in Samba 4.4. ++ Use it at your own risk: it may result in data corruption. ++ ++ ++ ++no ++ +-- +2.5.0 + + +From 1f63533b92b859e78e924cc21b7c305ecf245cc8 Mon Sep 17 00:00:00 2001 +From: Michael Adam +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 +--- + 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 + diff --git a/samba.spec b/samba.spec index 80c5eb9..cd4efd9 100644 --- a/samba.spec +++ b/samba.spec @@ -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 - 4.4.0-0.5.rc2 +- Activate multi channel support (switched off by default) + * Mon Feb 15 2016 Andreas Schneider - 4.4.0-0.4.rc2 - More spec file fixes - resolves: #1306542 - scriptlet failure because of comments