All of lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH] ndctl, bash-completion: add completion for {start, wait}-scrub commands
@ 2018-04-17  0:39 Vishal Verma
  0 siblings, 0 replies; only message in thread
From: Vishal Verma @ 2018-04-17  0:39 UTC (permalink / raw)
  To: linux-nvdimm

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

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 contrib/ndctl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/ndctl b/contrib/ndctl
index a3a8675..7a99baf 100755
--- a/contrib/ndctl
+++ b/contrib/ndctl
@@ -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
 		;;
-- 
2.14.3

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-17  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17  0:39 [ndctl PATCH] ndctl, bash-completion: add completion for {start, wait}-scrub commands Vishal Verma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.