summaryrefslogtreecommitdiff
path: root/completions/mdadm
diff options
context:
space:
mode:
Diffstat (limited to 'completions/mdadm')
-rw-r--r--completions/mdadm61
1 files changed, 30 insertions, 31 deletions
diff --git a/completions/mdadm b/completions/mdadm
index f0e917fd..111a2c35 100644
--- a/completions/mdadm
+++ b/completions/mdadm
@@ -19,13 +19,13 @@ _mdadm_raid_level()
case $mode in
create)
- COMPREPLY=( $( compgen -W 'linear raid0 0 stripe raid1 1 mirror \
+ COMPREPLY=( $( compgen -W 'linear raid0 0 stripe raid1 1 mirror
raid4 4 raid5 5 raid6 6 raid10 10 multipath mp faulty' \
-- "$cur" ) )
;;
build)
- COMPREPLY=( $( compgen -W 'linear stripe raid0 0 raid1 multipath \
- mp faulty' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'linear stripe raid0 0 raid1 multipath mp
+ faulty' -- "$cur" ) )
;;
esac
}
@@ -42,16 +42,16 @@ _mdadm_raid_layout()
case $level in
raid5)
- COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric \
+ COMPREPLY=( $( compgen -W 'left-asymmetric left-symmetric
right-asymmetric right-symmetric la ra ls rs' -- "$cur" ) )
;;
raid10)
COMPREPLY=( $( compgen -W 'n o p' -- "$cur" ) )
;;
faulty)
- COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt \
- write-persistent wp read-persistent rp write-all read-fixable \
- rf clear flush none' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'write-transient wt read-transient rt
+ write-persistent wp read-persistent rp write-all read-fixable
+ rf clear flush none' -- "$cur" ) )
;;
esac
}
@@ -63,7 +63,7 @@ _mdadm_auto_flag()
_mdadm_update_flag()
{
- COMPREPLY=( $( compgen -W 'sparc2.2 summaries uuid name homehost resync \
+ COMPREPLY=( $( compgen -W 'sparc2.2 summaries uuid name homehost resync
byteorder super-minor' -- "$cur" ) )
}
@@ -98,45 +98,44 @@ _mdadm()
$split && return 0
- local options
- options='--help --help-options --version --verbose --quiet \
- --brief --force --config= --scan --metadata= --homehost='
+ local options='--help --help-options --version --verbose --quiet --brief
+ --force --config= --scan --metadata= --homehost='
if [[ "$cur" == -* ]]; then
if [[ $cword -eq 1 ]] ; then
- COMPREPLY=( $( compgen -W "$options --assemble --build \
- --create --monitor --grow" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$options --assemble --build --create
+ --monitor --grow" -- "$cur" ) )
else
case ${words[cword-1]} in
-A|--assemble)
- COMPREPLY=( $( compgen -W "$options --uuid= \
- --super-minor= --name= --force --run \
- --no-degraded --auto= --bitmap= --backup-file= \
- --update= --auto-update-homehost" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$options --uuid= --super-minor=
+ --name= --force --run --no-degraded --auto= --bitmap=
+ --backup-file= --update= --auto-update-homehost" \
+ -- "$cur" ) )
;;
-B|-C|-G|--build|--create|--grow)
- COMPREPLY=( $( compgen -W "$options --raid-devices= \
- --spare-devices= --size= --chunk= --rounding= \
- --level= --layout= --parity= --bitmap= \
- --bitmap-chunk= --write-mostly --write-behind= \
- --assume-clean --backup-file= --name= --run \
- --force --auto=" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$options --raid-devices=
+ --spare-devices= --size= --chunk= --rounding= --level=
+ --layout= --parity= --bitmap= --bitmap-chunk=
+ --write-mostly --write-behind= --assume-clean
+ --backup-file= --name= --run --force --auto=" \
+ -- "$cur" ) )
;;
-F|--follow|--monitor)
- COMPREPLY=( $( compgen -W "$options --mail --program \
- --alert --syslog --delay --daemonise \
- --pid-file --oneshot --test" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$options --mail --program
+ --alert --syslog --delay --daemonise --pid-file
+ --oneshot --test" -- "$cur" ) )
;;
/dev/*|--add|--fail|--remove)
- COMPREPLY=( $( compgen -W "$options --add --re-add \
+ COMPREPLY=( $( compgen -W "$options --add --re-add
--remove --fail --set-faulty" -- "$cur" ) )
;;
*)
- COMPREPLY=( $( compgen -W "$options --query --detail \
- --examine --sparc2.2 --examine-bitmap --run \
- --stop --readonly --readwrite \
- --zero-superblock --test" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$options --query --detail
+ --examine --sparc2.2 --examine-bitmap --run --stop
+ --readonly --readwrite --zero-superblock --test" \
+ -- "$cur" ) )
;;
esac
fi