[PATCH] nvme-cli: nvmf-connect at .service: Remove matching from default syntax
James Smart
jsmart2021 at gmail.com
Fri Dec 17 11:32:32 PST 2021
commit 53aab69a0add added the "--matching" argument to the systemd
connect script that issues connect-all to a discovery controller. When
this argument is used, only discovery log entries whose target port
traddr's match the traddr of the discovery controller will be connected
to. This eliminates the ability to do referrals by the discovery
controller.
Revert the commit so that the "--matching" argument is not default
behavior.
Signed-off-by: James Smart <jsmart2021 at gmail.com>
CC: Martin Wilck <mwilck at suse.com>
---
nvmf-autoconnect/systemd/nvmf-connect at .service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nvmf-autoconnect/systemd/nvmf-connect at .service b/nvmf-autoconnect/systemd/nvmf-connect at .service
index 5fbf081..c60f146 100644
--- a/nvmf-autoconnect/systemd/nvmf-connect at .service
+++ b/nvmf-autoconnect/systemd/nvmf-connect at .service
@@ -11,4 +11,4 @@ Requires=nvmf-connect.target
[Service]
Type=simple
Environment="CONNECT_ARGS=%i"
-ExecStart=/bin/sh -c "nvme connect-all --matching --quiet `/bin/echo -e '${CONNECT_ARGS}'`"
+ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"
--
2.26.2
More information about the Linux-nvme
mailing list