The canonical way to destroy a namespace is to first disable it, then
destroy it. Thus typically, namespaces about to be destroyed will be
'idle'. Enable idle namespaces for completion of destroy-namespace.

Signed-off-by: Vishal Verma <[email protected]>
---
 contrib/ndctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/ndctl b/contrib/ndctl
index 076423f..fd560cb 100755
--- a/contrib/ndctl
+++ b/contrib/ndctl
@@ -203,7 +203,7 @@ __ndctl_comp_non_option_args()
        disable-namespace)
                ;&
        destroy-namespace)
-               opts="$(__ndctl_get_ns) all"
+               opts="$(__ndctl_get_ns -i) all"
                ;;
        check-namespace)
                opts="$(__ndctl_get_ns -i) all"
-- 
2.9.3

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

Reply via email to