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

Signed-off-by: Vishal Verma <vishal.l.ve...@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

Reply via email to