* use only PATHs rather than PIDs to namespaces
* add --namespace to umount too
Signed-off-by: Karel Zak <kzak@redhat.com>
;;
'-N'|'--namespace')
local NAMESPACE
- NAMESPACE="$(lsns --type mnt --output PATH,PID --noheadings)"
+ NAMESPACE="$(lsns --type mnt --output PATH --noheadings)"
COMPREPLY=( $(compgen -W "$NAMESPACE" -- $cur) )
return 0
;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
+ '-N'|'--namespace')
+ local NAMESPACE
+ NAMESPACE="$(lsns --type mnt --output PATH --noheadings)"
+ COMPREPLY=( $(compgen -W "$NAMESPACE" -- $cur) )
+ return 0
+ ;;
esac
case $cur in
-*)
--fake
--force
--internal-only
+ --namespace
--no-mtab
--lazy
--test-opts