diff options
author | Danek Duvall <duvall@comfychair.org> | 2014-01-02 11:52:24 -0800 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2014-01-02 22:26:04 +0000 |
commit | ef2eaf1f787370356159bfb402a057d88b934ceb (patch) | |
tree | 27d4ce143fa38125c327c16587affa53d24c1b6b /Completion/Unix/Command/_zpool | |
parent | 60372fbda67ba0f61bd0e706f599c1f6e5255f98 (diff) | |
download | zsh-ef2eaf1f787370356159bfb402a057d88b934ceb.tar.gz zsh-ef2eaf1f787370356159bfb402a057d88b934ceb.tar.xz zsh-ef2eaf1f787370356159bfb402a057d88b934ceb.zip |
32261: completion updates for Solaris 11, Update 1
Diffstat (limited to 'Completion/Unix/Command/_zpool')
-rw-r--r-- | Completion/Unix/Command/_zpool | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_zpool b/Completion/Unix/Command/_zpool index 0af2ab32d..0f18eefb5 100644 --- a/Completion/Unix/Command/_zpool +++ b/Completion/Unix/Command/_zpool @@ -1,5 +1,5 @@ #compdef zpool -# Synced with the S11U1 build 19 man page +# Synced with the S11U1 man page _zpool() { local context state line expl @@ -8,7 +8,7 @@ _zpool() { subcmds=( create destroy add remove list iostat status online offline clear attach detach replace scrub import export - upgrade history get set split + upgrade history get set split help ) versions=( @@ -35,7 +35,9 @@ _zpool() { "dedupditto[Threshold for number of copies]:value:" "delegation[Delegated administration]:value:(on off)" "failmode[Failure-mode behavior]:value:(wait continue panic)" + "listshares[Show shares in 'zfs list']:value:(on off)" "listsnaps[Show snapshots in 'zfs list']:value:(on off)" + "readonly[Controls whether the pool can be modified]:value:(on off)" "version[Pool version]:version:($versions)" ) @@ -97,9 +99,19 @@ _zpool() { fi case $service in + (help) + _arguments -A "-*" \ + - set1 \ + ':command/property:($subcmds ${fields%%\[*} properties)' \ + - set2 \ + '-l[Display property information]' \ + ': :(properties)' + ;; + (clear) _arguments -A "-*" \ '-F[Discard transactions to allow pool opening]' \ + '-f[Ignore fmadm acquit and fmadm repair failures]' \ '-n[With -F, check if discarding transactions would work]' \ ':pool name:_zfs_pool' \ '*:virtual device:_files' @@ -216,10 +228,13 @@ _zpool() { _arguments -A "-*" \ '-D[Destroyed pools]' \ '(-d)*-c[Use cache file]:cache file:_files' \ - '(-c)*-d[Search for devices or files in directory]:directory:_files -/' \ + '(-c,-D)*-d[Search for devices or files in directory]:directory:_files -/' \ + '-F[Recovery mode: discard transactions if required]' \ '-f[Force import]' \ '-l[Display configuration in /dev/chassis location form]' \ '-m[Ignore missing log devices]' \ + '-N[Import pool without mounting any filesystems]' \ + '-n[With -F; do not perform input]' \ '-R[Alternate root]:alternate root:_files -/' \ '-o[Set pool or dataset property]:property:_values -s , "property" $create_properties_dataset $rw_props' \ - set1 \ |