[PATCH v2 14/16] completions: add completions for nvme monitor

mwilck at suse.com mwilck at suse.com
Sat Mar 6 00:36:57 GMT 2021


From: Martin Wilck <mwilck at suse.com>

Add some completions for the monitor command.
---
 completions/bash-nvme-completion.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/completions/bash-nvme-completion.sh b/completions/bash-nvme-completion.sh
index 7ab4226..f142981 100644
--- a/completions/bash-nvme-completion.sh
+++ b/completions/bash-nvme-completion.sh
@@ -12,7 +12,7 @@ _cmds="list id-ctrl id-ns list-ns id-iocs nvm-id-ctrl create-ns delete-ns \
 	write-uncor copy reset subsystem-reset show-regs discover \
 	connect-all connect disconnect version help \
 	intel lnvm memblaze list-subsys endurance-event-agg-log \
-	lba-status-log"
+	lba-status-log monitor"
 
 nvme_list_opts () {
         local opts=""
@@ -242,6 +242,10 @@ nvme_list_opts () {
 		"disconnect")
 		opts+=" --nqn -n --device -d"
 			;;
+		"monitor")
+		opts+=" --no-connect -N --cleanup -C \
+			--hostnqn= -q --verbose -v --timestamps -t"
+			;;
 		"version")
 		opts+=""
 			;;
-- 
2.29.2




More information about the Linux-nvme mailing list