ndctl, completion: show idle namespaces for 'destroy'
Vishal Verma
maintainerPATCH 1/1 ndctl, completion: show idle namespaces for 'destroy'
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(-)
contrib/ndctl +1 -1
@@ -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"
Signature · 6 lines
2.9.3 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
Quoted 4 lines · Vishal Verma
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.
Thanks Vishal, applied.
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm