X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=btrfs-completion;h=3ede77b6c1eccaf0700e54adbd8fca1afa319fa7;hb=dad817d3bad44619c355d11e39512b413da6939c;hp=91c7730cfe8e9275e34c5f853c2f1d130cb1c22d;hpb=895b7729965d50e42d4ae71f45a5002627eaa8a3;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/btrfs-completion b/btrfs-completion index 91c7730..3ede77b 100644 --- a/btrfs-completion +++ b/btrfs-completion @@ -20,23 +20,23 @@ _btrfs_mnts() COMPREPLY+=( $( compgen -W "$MNTS" -- "$cur" ) ) } -_btrfs() +_btrfs() { local cur prev words cword _init_completion || return COMPREPLY=() - + local cmd=${words[1]} commands='subvolume filesystem balance device scrub check rescue restore inspect-internal property send receive quota qgroup replace help version' commands_subvolume='create delete list snapshot find-new get-default set-default show sync' commands_filesystem='defragment sync resize show df label usage' commands_balance='start pause cancel resume status' - commands_device='scan add delete ready stats usage' + commands_device='scan add delete remove ready stats usage' commands_scrub='start cancel resume status' commands_rescue='chunk-recover super-recover' - commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid' + commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree dump-super tree-stats' commands_property='get set list' commands_quota='enable disable rescan' commands_qgroup='assign remove create destroy show limit' @@ -146,7 +146,7 @@ _btrfs() fi _filedir -d - return 0 + return 0 } complete -F _btrfs btrfs