Skip to contentSkip to conversation

ndctl, completion: show idle namespaces for 'destroy'

PATCH In review Vishal Verma 2 participants 2 messages Jun 13, 2017 – Jun 15, 2017 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 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.

---
 contrib/ndctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/ndctl +1 -1
index 076423f..fd560cb 100755
@@ -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
#1 lore raw
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