From patchwork Thu Feb 11 13:01:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Fougner X-Patchwork-Id: 8279171 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 72907BEEE5 for ; Thu, 11 Feb 2016 13:02:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C4702039E for ; Thu, 11 Feb 2016 13:02:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 564D920380 for ; Thu, 11 Feb 2016 13:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752969AbcBKNCP (ORCPT ); Thu, 11 Feb 2016 08:02:15 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34479 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbcBKNCO (ORCPT ); Thu, 11 Feb 2016 08:02:14 -0500 Received: by mail-wm0-f68.google.com with SMTP id p63so10547265wmp.1 for ; Thu, 11 Feb 2016 05:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KpL5dV0NdVBhFL81t0mgS/zJP/YA48W7UpDkzRPBxoI=; b=N4bmjrtoO+W7kHPmnR1D8bNX9NJKx4l7oZKM4z0hT1FeOF4gIAhwVhwN+pBlvZXHEr 8UbIgwIebxQRdoHmng+H052ILqcafhcXsv8PyGkepdVbgsFNm7pGdA7nvF+wmLGoO0xD zCSicZdJCns8TEIXayA/ibaqjWw9aTVV7Jm0AlEBljf4zhC57kNDkP5BX8GajZcHnEuW gLZ/hgLhVmsMKtDPDrxUQKlONLMJ3jzu0EAL2qgc4jLEA9qUWyErCFMTGSgkVpFME7D1 fVVrmBz1xvJVZorAbDQrufuctQTheWlXDp9VOtcgDqYC1eYsRQEEpLEPOwwVpt8AjfWl z6RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KpL5dV0NdVBhFL81t0mgS/zJP/YA48W7UpDkzRPBxoI=; b=bj6OPq5s65IuRtebTy76g4fsF8kOQMHW4lpGl6vBlKIsv+Df+e3G1LeoKVtDGM6/mp QWy6vVGKRaLv9BkmNT6+/W37K4uLFFmZH6O4WnjCvj28fJhBTD6+JcYaY90V0UlhJuRA JD8fTaqJXkoczQ6XlWkbdo+ZRR4OhfLwDYFe9OIrSVFpQUVbMkOhuP3sXAyr2UO1QDT7 W/d7DUqQko0Ij+qjYGZbQYjc6gkq8qjnTvWMaBlr1dIsssbV8ZMaUQi5L+2PU1UmXJ/I TflfQrZGa5ThLwttXX2MKjXl2J4BfB96jaZwdSgHqwo9GAwPN/9LZ9AWlP19DAh6FCdn 1iuQ== X-Gm-Message-State: AG10YOTXK5TomeUsrdCgFkaNEk9HuMJ9Tcooc+lfzXcPzxgZm7sVDbBsa7Ac1R4MxVjNfg== X-Received: by 10.28.48.19 with SMTP id w19mr16623071wmw.18.1455195733617; Thu, 11 Feb 2016 05:02:13 -0800 (PST) Received: from localhost.localdomain (217-208-81-241-no32.tbcn.telia.com. [217.208.81.241]) by smtp.gmail.com with ESMTPSA id w62sm26847160wmg.21.2016.02.11.05.02.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Feb 2016 05:02:12 -0800 (PST) From: Alexander Fougner To: linux-btrfs@vger.kernel.org Cc: Alexander Fougner Subject: [PATCH 2/2] btrfs-progs: add completion for subcommand dump-tree Date: Thu, 11 Feb 2016 14:01:56 +0100 Message-Id: <1455195716-16282-2-git-send-email-fougner89@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455195716-16282-1-git-send-email-fougner89@gmail.com> References: <1455195716-16282-1-git-send-email-fougner89@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexander Fougner --- btrfs-completion | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/btrfs-completion b/btrfs-completion index a34191b..7631911 100644 --- a/btrfs-completion +++ b/btrfs-completion @@ -20,13 +20,13 @@ _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' @@ -36,7 +36,7 @@ _btrfs() 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 min-dev-size' + commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree' 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