diff mbox

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

Message ID 20180417003928.23709-1-vishal.l.verma@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Verma, Vishal L April 17, 2018, 12:39 a.m. UTC
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 mbox

Patch

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
 		;;