From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2577 invoked from network); 12 Aug 2020 14:44:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2020 14:44:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=GifYZ6Fmg4paeA+IZhdtRlY9nk5GayJEALBKoxjnWwA=; b=Hj78/cguYqtL5gMut3a+RuCQq gE1ZURhHJQNU/FTHkhbysOBZ/yEc5vY5EIvwurD3f10urZtpK3r+99/HfADX+TZbkN5bfQCeUNtSA s6fcoxgF7KK1zImJVF1T2IgcCg7UWmshY3SNNs5E9Z/62pZpNs/Xql+X2sgQPSP+6NSnymZ6Aqabq RDMJz1Qhb3cb7dORZmqvr5p6V+s0xgz4MYDaIJVIfSxRjoR9PfE89VdH0JeLN3tmnZT9RK59Mjh2b rgdeORErOJJv97TjZc5cM4E3NiUR0xkc0NyLq0AXoqc2hxrTtsU6gDHiJxtpTplCdEmY/23mEmuyr joH6zuhGA==; Received: from authenticated user by zero.zsh.org with local id 1k5rzM-000GcY-R7; Wed, 12 Aug 2020 14:44:24 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1k5rz6-000GSv-MD; Wed, 12 Aug 2020 14:44:09 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1k5rz4-000IGd-Ut for zsh-workers@zsh.org; Wed, 12 Aug 2020 16:44:07 +0200 From: Oliver Kiddle To: Zsh workers Subject: PATCH: update btrfs completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <70221.1597243446.1@hydra> Date: Wed, 12 Aug 2020 16:44:06 +0200 Message-ID: <70222-1597243446.954717@oaaF.I-dR.4z-4> X-Zsh-Org-Should-ARC-Sign: false X-Seq: 47321 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: This is an update for btrfs completion taking in some new options of btrfs 5.4. Oliver diff --git a/Completion/Linux/Command/_btrfs b/Completion/Linux/Command/_btrfs index eb31580ad..d560928ae 100644 --- a/Completion/Linux/Command/_btrfs +++ b/Completion/Linux/Command/_btrfs @@ -70,6 +70,7 @@ while (( $#state )); do args+=( '(-c --commit-after -C --commit-each)'{-c,--commit-after}'[wait for transaction commit at the end of the operation]' '(-c --commit-after -C --commit-each)'{-C,--commit-each}'[wait for transaction commit after deleting each subvolume]' + '(-i --subvolid)'{-i+,--subvolid=}'[specify id of subvolume to be removed]:subvolume id' '(-v --verbose)'{-v,--verbose}'[verbose output of operations]' '1:subvolume:_files -/' ) @@ -219,14 +220,14 @@ while (( $#state )); do '(-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]' + '(-v --verbose)'{-v,--verbose}'[verbose mode]' '-f[force a reduction of metadata integrity]' "--full-balance[don't print warning and don't delay start]" '(--background --bg)'{--background,--bg}'[run balance operation asynchronously in the background]' '1:path:_files -/' ) ;; - balance:status) args+=( '-v[verbose mode]' '1:path:_files -/' );; + balance:status) args+=( '(-v --verbose)'{-v,--verbose}'[verbose mode]' '1:path:_files -/' );; balance:(pause|cancel|resume)) args+=( '1:path:_files -/' );; property:set) args+=( '3:value' );& property:get) args+=( '2:property:(ro label compression)' );& @@ -244,10 +245,14 @@ while (( $#state )); do '1:path:_files -/' ) ;; - qgroup:(assign|remove)) args+=( '1:source path:_files -/' - '2:destination path:_files -/' '3:path:_files -/' );| - qgroup:assign) args+=( \!--rescan - "--no-rescan[don't do a rescan, even if the assignment will make the quotas inconsistent]" ) + qgroup:(assign|remove)) + args+=( + \!--rescan + "--no-rescan[don't do a rescan, even if the quotas may become inconsistent]" + '1:source path:_files -/' + '2:destination path:_files -/' + '3:path:_files -/' + ) ;; qgroup:(create|destroy)) args+=( '1:qgroupid:' '2:path:_files -/' );; qgroup:show) @@ -296,6 +301,9 @@ while (( $#state )); do '(-t --tree)'{-t,--tree}'[print only tree with the given id (string or number)]:tree id' '--follow[use with -b, to show all children tree blocks of the block]' "--noscan[don't scan devices from the filesystem, use only the listed ones]" + '!(--dfs)--bfs' + '--dfs[depth-first traversal of the trees]' + '--hide-names[hide filenames/subvolume/xattrs and other name references]' ) ;; inspect*:dump-super) @@ -313,6 +321,7 @@ while (( $#state )); do args+=( '-v[verbose mode]' '-P[skip the path resolving and print the inodes instead]' + '-o[ignore offsets when matching references]' '-s[specify buffer size]:buffer size [4096]' '1:logical address:_files' '2:filesystem path:_files -/'