summaryrefslogtreecommitdiff
path: root/completions/lvm
diff options
context:
space:
mode:
Diffstat (limited to 'completions/lvm')
-rw-r--r--completions/lvm72
1 files changed, 31 insertions, 41 deletions
diff --git a/completions/lvm b/completions/lvm
index e2f3f3cd..ba0720ed 100644
--- a/completions/lvm
+++ b/completions/lvm
@@ -69,9 +69,9 @@ _pvscan()
_init_completion || return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup \
- --help --ignorelockingfailure --partial --short --uuid \
- --verbose --version' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup --help
+ --ignorelockingfailure --partial --short --uuid --verbose
+ --version' -- "$cur" ) )
fi
} &&
complete -F _pvscan pvscan
@@ -83,10 +83,8 @@ _pvs()
case $prev in
-o|-O|--options|--sort)
- COMPREPLY=( $( compgen -W 'pv_fmt pv_uuid \
- pv_size pv_free pv_used pv_name \
- pv_attr pv_pe_count \
- pv_pe_alloc_count' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'pv_fmt pv_uuid pv_size pv_free pv_used
+ pv_name pv_attr pv_pe_count pv_pe_alloc_count' -- "$cur" ) )
return 0
;;
--units)
@@ -191,9 +189,9 @@ _pvmove()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--abort --autobackup \
- --background --debug --force --help --interval --test --verbose \
- --version --name' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--abort --autobackup --background --debug
+ --force --help --interval --test --verbose --version --name' \
+ -- "$cur" ) )
else
_lvm_physicalvolumes
fi
@@ -231,11 +229,10 @@ _vgs()
case $prev in
-o|-O|--options|--sort)
- COMPREPLY=( $( compgen -W 'vg_fmt vg_uuid vg_name \
- vg_attr vg_size vg_free vg_sysid \
- vg_extent_size vg_extent_count vg_free_count \
- max_lv max_pv pv_count lv_count snap_count \
- vg_seqno' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'vg_fmt vg_uuid vg_name vg_attr vg_size
+ vg_free vg_sysid vg_extent_size vg_extent_count vg_free_count
+ max_lv max_pv pv_count lv_count snap_count vg_seqno' \
+ -- "$cur" ) )
return 0
;;
--units)
@@ -285,11 +282,10 @@ _vgchange()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--autobackup --alloc \
- --partial --debug --help --ignorelockingfailure \
- --test --uuid --verbose --version \
- --available --resizeable --logicalvolume \
- --addtag --deltag' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--autobackup --alloc --partial --debug
+ --help --ignorelockingfailure --test --uuid --verbose --version
+ --available --resizeable --logicalvolume --addtag --deltag' \
+ -- "$cur" ) )
else
_lvm_volumegroups
fi
@@ -317,10 +313,9 @@ _vgcreate()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc \
- --debug --help --maxlogicalvolumes --metadatatype \
- --maxphysicalvolumes --physicalextentsize --test \
- --verbose --version' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc --debug --help
+ --maxlogicalvolumes --metadatatype --maxphysicalvolumes
+ --physicalextentsize --test --verbose --version' -- "$cur" ) )
else
local args
_lvm_count_args @(-A|--autobackup|-M|--metadatatype|-s|--physicalextentsize)
@@ -562,9 +557,8 @@ _vgsplit()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--autobackup --debug \
- --help --list --metadatatype --test \
- --verbose --version' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--autobackup --debug --help --list
+ --metadatatype --test --verbose --version' -- "$cur" ) )
else
local args
_lvm_count_args @(-A|--autobackup|-M|--metadatatype)
@@ -608,9 +602,9 @@ _lvs()
case $prev in
-o|-O|--options|--sort)
- COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor \
- lv_size seg_count origin snap_percent segtype stripes \
- stripesize chunksize seg_start seg_size' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'lv_uuid lv_name lv_attr lv_minor lv_size
+ seg_count origin snap_percent segtype stripes stripesize
+ chunksize seg_start seg_size' -- "$cur" ) )
return 0
;;
--units)
@@ -839,17 +833,13 @@ _lvm()
_init_completion || return
if [[ $cword -eq 1 ]]; then
- COMPREPLY=( $( compgen -W 'dumpconfig help lvchange \
- lvcreate lvdisplay lvextend lvmchange \
- lvmdiskscan lvmsadc lvmsar lvreduce \
- lvremove lvrename lvresize lvs lvscan \
- pvchange pvcreate pvdata pvdisplay pvmove \
- pvremove pvresize pvs pvscan vgcfgbackup \
- vgcfgrestore vgchange vgck vgconvert \
- vgcreate vgdisplay vgexport vgextend \
- vgimport vgmerge vgmknodes vgreduce \
- vgremove vgrename vgs vgscan vgsplit \
- version' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'dumpconfig help lvchange lvcreate lvdisplay
+ lvextend lvmchange lvmdiskscan lvmsadc lvmsar lvreduce lvremove
+ lvrename lvresize lvs lvscan pvchange pvcreate pvdata pvdisplay
+ pvmove pvremove pvresize pvs pvscan vgcfgbackup vgcfgrestore
+ vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend
+ vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgs vgscan
+ vgsplit version' -- "$cur" ) )
else
case ${words[1]} in
pvchange)