From f5184791f44e20e595997ee1a259638dec767616 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 Reviewed-by: Stefan Metzmacher (cherry picked from commit 8a71e1a5a803510f60c8610d06e7868739dc31b1) BUG: https://bugzilla.samba.org/show_bug.cgi?id=11796 --- .../protocol/servermultichannelsupport.xml | 21 +++++++++++++++++++++ 1 file changed, 21 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..14db171 --- /dev/null +++ b/docs-xml/smbdotconf/protocol/servermultichannelsupport.xml @@ -0,0 +1,21 @@ + + + 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: Even though it may seem to work well in testing, + it may result in data corruption under some race conditions. + Future 4.4.x release may improve this situation. + + + +no + -- 2.5.0 From df9dcf49829c9df1939ead5175366d851a13d5ad 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 Reviewed-by: Stefan Metzmacher Autobuild-User(master): Michael Adam Autobuild-Date(master): Tue Mar 15 20:58:19 CET 2016 on sn-devel-144 (cherry picked from commit e85e4055b940ea3be4e5beb12a62ad448dbbc73d) BUG: https://bugzilla.samba.org/show_bug.cgi?id=11796 --- 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 d8ba2f7..7286b6e 100644 --- a/source3/smbd/smbXsrv_client.c +++ b/source3/smbd/smbXsrv_client.c @@ -511,6 +511,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