summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_zpool
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_zpool')
-rw-r--r--Completion/Unix/Command/_zpool10
1 files changed, 9 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_zpool b/Completion/Unix/Command/_zpool
index 4d4793eea..d9c2caa52 100644
--- a/Completion/Unix/Command/_zpool
+++ b/Completion/Unix/Command/_zpool
@@ -14,7 +14,7 @@ _zpool() {
)
if [[ $implementation = openzfs ]] && [[ $OSTYPE != solaris* ]]; then
- subcmds+=(labelclear)
+ subcmds+=( labelclear initialize )
fi
versions=(
@@ -158,6 +158,14 @@ _zpool() {
'::pool name:_zfs_pool'
;;
+ (initialize)
+ _arguments -A "-*" \
+ '(-c --cancel)'{-c,--cancel}'[cancel initializing on specified devices]' \
+ '(-s --suspend)'{-s,--suspend}'[suspend initializing on specified devices]' \
+ ':pool name:_zfs_pool' \
+ '*:device:_files'
+ ;;
+
(iostat)
_arguments -A "-*" \
'-l[Display configuration in /dev/chassis location form]' \