summaryrefslogtreecommitdiffstats
path: root/bash-completion/losetup
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/losetup')
-rw-r--r--bash-completion/losetup8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/losetup b/bash-completion/losetup
index d20726533..e085abe28 100644
--- a/bash-completion/losetup
+++ b/bash-completion/losetup
@@ -24,12 +24,17 @@ _losetup_module()
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '-t'|'--type')
+ ARG="RAW QCOW VDI VMDK"
+ COMPREPLY=( $(compgen -W "$ARG" -- $cur) )
+ return 0
+ ;;
'-O'|'--output')
local prefix realcur OUTPUT_ALL OUTPUT
realcur="${cur##*,}"
prefix="${cur%$realcur}"
OUTPUT_ALL="NAME AUTOCLEAR BACK-FILE BACK-INO
- BACK-MAJ:MIN MAJ:MIN OFFSET PARTSCAN RO
+ BACK-MAJ:MIN FILE-FORMAT MAJ:MIN OFFSET PARTSCAN RO
SIZELIMIT DIO"
for WORD in $OUTPUT_ALL; do
if ! [[ $prefix == *"$WORD"* ]]; then
@@ -58,6 +63,7 @@ _losetup_module()
--partscan
--read-only
--show
+ --type
--verbose
--json
--list