Skip to contentSkip to conversation

ndctl, bash-completion: add completion for {start, wait}-scrub commands

PATCH New Vishal Verma 1 participant 1 message Apr 17, 2018 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl, bash-completion: add completion for {start, wait}-scrub commands

Complete the new ARS control commands with the available buses (and 'all') for non-option arguments.

---
 contrib/ndctl | 5 +++++
 1 file changed, 5 insertions(+)
contrib/ndctl +5 -0
index a3a8675..7a99baf 100755
@@ -290,6 +290,11 @@ __ndctl_comp_non_option_args()
 	inject-smart)
 		opts="$(__ndctl_get_dimms -i)"
 		;;
+	wait-scrub)
+		;&
+	start-scrub)
+		opts="$(__ndctl_get_buses) all"
+		;;
 	*)
 		return
 		;;
Signature · 6 lines
2.14.3

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm