From: llua <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: [PATCH 1/4] _btrfs: Removed inconsistent hardtabs
Date: Tue, 18 Feb 2014 12:56:58 -0500 [thread overview]
Message-ID: <1392746221-1800-1-git-send-email-llua@gmx.com> (raw)
From: Eric Cook <llua@gmx.com>
---
Completion/Linux/Command/_btrfs | 150 ++++++++++++++++++++--------------------
1 file changed, 75 insertions(+), 75 deletions(-)
diff --git a/Completion/Linux/Command/_btrfs b/Completion/Linux/Command/_btrfs
index da2514e..108f21e 100644
--- a/Completion/Linux/Command/_btrfs
+++ b/Completion/Linux/Command/_btrfs
@@ -45,74 +45,74 @@ while (( $#state )); do
curcontext="${curcontext%:*:*}:$service-${groups[grp]}-${${(P)group}[cmd]}:"
args=( '(-)--help[print help information]' )
case ${groups[grp]}:${${(P)group}[cmd]} in
- filesystem:balance)
- if (( CURRENT == 3 )); then
- state+=cmds
- else
- shift words
- (( CURRENT-- ))
- state+=args
- fi
- continue
- ;;
- subvolume:create) args+=( '1:destination:->mounts' );;
- subvolume:delete) args+=( '1:subvolume:_files -/' );;
- subvolume:snapshot) args+=( '-r[readonly snapshot]' '1:snapshot:_files -/' );;
- subvolume:list) args+=( '-p[include parent ID in output]' '1:path:->mounts' );;
- subvolume:set-default) args+=( '1:id:_guard "[0-9]#" id' '2:path:->mounts' );;
- filesystem:resize) args+=( '1:size:_guart "(|+|-)[0-9]#[GKM]"' '2:path:->mounts' );;
- filesystem:defragment)
- args+=(
- '-v[verbose]'
- '-c[compress files while defragmenting]'
- '-f[flush after defragmenting]'
- '-s[start position]:byte position'
- '-l[defragment limited number of bytes]:length (bytes)'
- '-t[defragment only files over a certain size]:minimum size (bytes)'
- '*:file:_files'
- )
- ;;
- filesystem:label) args+=( '1:device:_files -g "*(d)"' '2:label' );;
- filesystem:show) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1: :_guard "^-*" uuid or label' );;
- device:(add|delete)) args+=( '1:device:_files -g "*(d)"' '2:path:->mounts' );;
- device:scan) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1:device:_files -g "*(d)"' );;
- scrub:(start|resume))
- args+=(
- "-B[don't background and print statistics at end]"
- '-d[print separate statistics for each device]'
- '-q[omit error message and statistics]'
- '-r[read only mode]'
- '-u[scrub unused space too]'
- '1:path or device:_files'
- )
- ;;
- scrub:cancel) args+=( '1:path or device' );;
- scrub:status) args+=( '-d[separate statistics for each device]' '1:path or device:_files' );;
- balance:start)
- args+=(
- '(-m -s)-d+[act on data chunks]:filter:->filters'
- '(-d -s)-m+[act on metadata chunks]:filter:->filters'
- '(-d -m)-s+[act on system chunks (only under -f)]:filters:->filters'
- '-v[verbose mode]'
- '-f[force reducing of metadata integrity]'
- '1:path:_files -/'
- )
- ;;
- balance:status) args+=( '-v[verbose mode]' '2:path:_files -/' );;
- balance:(pause|cancel|resume)) args+=( '2:path:_files -/' );;
- inspect*:inode*) args+=( '-v[verbose mode]' '1:inode:_files' '2:path:_files -/' );;
- inspect*:logical*)
- args+=(
- '-v[verbose mode]'
- '-P[skip the path resolving and print the inodes instead]'
- '1:logical address:_files'
- '2:filesystem path:_files -/'
- )
- ;;
- subvolume:get-default) ;&
- *:sync) ;&
- *:df) args+=( '1:path:->mounts' );;
- *) args+=( '*: :_default' );; # fallback for unknown subcommands
+ filesystem:balance)
+ if (( CURRENT == 3 )); then
+ state+=cmds
+ else
+ shift words
+ (( CURRENT-- ))
+ state+=args
+ fi
+ continue
+ ;;
+ subvolume:create) args+=( '1:destination:->mounts' );;
+ subvolume:delete) args+=( '1:subvolume:_files -/' );;
+ subvolume:snapshot) args+=( '-r[readonly snapshot]' '1:snapshot:_files -/' );;
+ subvolume:list) args+=( '-p[include parent ID in output]' '1:path:->mounts' );;
+ subvolume:set-default) args+=( '1:id:_guard "[0-9]#" id' '2:path:->mounts' );;
+ filesystem:resize) args+=( '1:size:_guart "(|+|-)[0-9]#[GKM]"' '2:path:->mounts' );;
+ filesystem:defragment)
+ args+=(
+ '-v[verbose]'
+ '-c[compress files while defragmenting]'
+ '-f[flush after defragmenting]'
+ '-s[start position]:byte position'
+ '-l[defragment limited number of bytes]:length (bytes)'
+ '-t[defragment only files over a certain size]:minimum size (bytes)'
+ '*:file:_files'
+ )
+ ;;
+ filesystem:label) args+=( '1:device:_files -g "*(d)"' '2:label' );;
+ filesystem:show) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1: :_guard "^-*" uuid or label' );;
+ device:(add|delete)) args+=( '1:device:_files -g "*(d)"' '2:path:->mounts' );;
+ device:scan) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1:device:_files -g "*(d)"' );;
+ scrub:(start|resume))
+ args+=(
+ "-B[don't background and print statistics at end]"
+ '-d[print separate statistics for each device]'
+ '-q[omit error message and statistics]'
+ '-r[read only mode]'
+ '-u[scrub unused space too]'
+ '1:path or device:_files'
+ )
+ ;;
+ scrub:cancel) args+=( '1:path or device' );;
+ scrub:status) args+=( '-d[separate statistics for each device]' '1:path or device:_files' );;
+ balance:start)
+ args+=(
+ '(-m -s)-d+[act on data chunks]:filter:->filters'
+ '(-d -s)-m+[act on metadata chunks]:filter:->filters'
+ '(-d -m)-s+[act on system chunks (only under -f)]:filters:->filters'
+ '-v[verbose mode]'
+ '-f[force reducing of metadata integrity]'
+ '1:path:_files -/'
+ )
+ ;;
+ balance:status) args+=( '-v[verbose mode]' '2:path:_files -/' );;
+ balance:(pause|cancel|resume)) args+=( '2:path:_files -/' );;
+ inspect*:inode*) args+=( '-v[verbose mode]' '1:inode:_files' '2:path:_files -/' );;
+ inspect*:logical*)
+ args+=(
+ '-v[verbose mode]'
+ '-P[skip the path resolving and print the inodes instead]'
+ '1:logical address:_files'
+ '2:filesystem path:_files -/'
+ )
+ ;;
+ subvolume:get-default) ;&
+ *:sync) ;&
+ *:df) args+=( '1:path:->mounts' );;
+ *) args+=( '*: :_default' );; # fallback for unknown subcommands
esac
shift words
(( CURRENT-- ))
@@ -125,13 +125,13 @@ while (( $#state )); do
filters)
state=()
_values -s , filter \
- 'profiles[balance only block groups in given replication profiles]:profile:->profiles' \
- 'usage[balance block groups with usage below percentage]:percentage' \
- 'devid[limit by device ID]:device ID' \
- 'drange[balance block groups overlapping byte range]:range' \
- 'vrange[balance block groups overlapping byte range in virtual address space]:range' \
- 'convert[convert block groups to given profile]:profile:->profiles' \
- 'soft[leave chunks that already have target profile]' && ret=0
+ 'profiles[balance only block groups in given replication profiles]:profile:->profiles' \
+ 'usage[balance block groups with usage below percentage]:percentage' \
+ 'devid[limit by device ID]:device ID' \
+ 'drange[balance block groups overlapping byte range]:range' \
+ 'vrange[balance block groups overlapping byte range in virtual address space]:range' \
+ 'convert[convert block groups to given profile]:profile:->profiles' \
+ 'soft[leave chunks that already have target profile]' && ret=0
state=( $state )
;;
profiles)
--
1.8.5.3
next reply other threads:[~2014-02-18 18:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 17:56 llua [this message]
2014-02-18 17:56 ` [PATCH 2/4] _btrfs: fix minor typo llua
2014-02-18 17:57 ` [PATCH 3/4] _btrfs: updated existing subcommands llua
2014-02-18 17:57 ` llua
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392746221-1800-1-git-send-email-llua@gmx.com \
--to=llua@gmx.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).