Blame SOURCES/0006-nvme-cli-nvmf-connect-.service-Remove-matching-from-.patch

235e14
From 58c23ceb12d16756b2222a55d1d9dc5f34bb4fa4 Mon Sep 17 00:00:00 2001
235e14
From: James Smart <jsmart2021@gmail.com>
235e14
Date: Fri, 17 Dec 2021 11:32:32 -0800
235e14
Subject: [PATCH 5/6] nvme-cli: nvmf-connect@.service: Remove matching from
235e14
 default syntax
235e14
235e14
commit 53aab69a0add added the "--matching" argument to the systemd
235e14
connect script that issues connect-all to a discovery controller. When
235e14
this argument is used, only discovery log entries whose target port
235e14
traddr's match the traddr of the discovery controller will be connected
235e14
to.  This eliminates the ability to do referrals by the discovery
235e14
controller.
235e14
235e14
Revert the commit so that the "--matching" argument is not default
235e14
behavior.
235e14
235e14
Signed-off-by: James Smart <jsmart2021@gmail.com>
235e14
CC: Martin Wilck <mwilck@suse.com>
235e14
Signed-off-by: Daniel Wagner <dwagner@suse.de>
235e14
Link: https://lore.kernel.org/r/20211217193232.29034-1-jsmart2021@gmail.com
235e14
---
235e14
 nvmf-autoconnect/systemd/nvmf-connect@.service | 2 +-
235e14
 1 file changed, 1 insertion(+), 1 deletion(-)
235e14
235e14
diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service
235e14
index 5fbf081..c60f146 100644
235e14
--- a/nvmf-autoconnect/systemd/nvmf-connect@.service
235e14
+++ b/nvmf-autoconnect/systemd/nvmf-connect@.service
235e14
@@ -11,4 +11,4 @@ Requires=nvmf-connect.target
235e14
 [Service]
235e14
 Type=simple
235e14
 Environment="CONNECT_ARGS=%i"
235e14
-ExecStart=/bin/sh -c "nvme connect-all --matching --quiet `/bin/echo -e '${CONNECT_ARGS}'`"
235e14
+ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"
235e14
-- 
235e14
2.27.0
235e14