From patchwork Thu Sep 15 19:15:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Batts X-Patchwork-Id: 9334613 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 629E3601C2 for ; Thu, 15 Sep 2016 19:16:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 507DD29ADD for ; Thu, 15 Sep 2016 19:16:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44D4329B05; Thu, 15 Sep 2016 19:16:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43CD729ADD for ; Thu, 15 Sep 2016 19:16:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754382AbcIOTP7 (ORCPT ); Thu, 15 Sep 2016 15:15:59 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:36837 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752706AbcIOTP4 (ORCPT ); Thu, 15 Sep 2016 15:15:56 -0400 Received: by mail-yb0-f196.google.com with SMTP id u125so1943335ybg.3 for ; Thu, 15 Sep 2016 12:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=HXMQr4bOATNHL//jIsYC9J19gi0Q4cJu6ERgR28KeGA=; b=feMFOUzHps3sAoXrFULdQXaY+xOyGeXyAv3NZBLBy74YvDfCj7yCe38bql13ljTolk 7DSkx/fwG3htH62vYIGQlp3CmyPCi6LUH7APOdIaS84nrFQMZA4tNsivqbbyHbu9hClP goacdDptXAPcTJv3SH3PXRFG0i6bHE7Q46O4pXbpR428rlqwrQQCV2WUq0J/GKdGqpyj MOsznvgBMwqkH13M2jbfvur9zHVVFnpvkY+ZSSfKOTZRWuSwWpujqLFGYQPF7wYLFS+a 28+LRnrr2VEnuOKlWJhvXHV9Ip7dPelCnY/2lPwcinl7dRy0Jby6+sBz5FxDVCIHd5BF sL+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=HXMQr4bOATNHL//jIsYC9J19gi0Q4cJu6ERgR28KeGA=; b=Ytdjp46Yc0Ux10BVO9FEe485GDZF/SvHk7surHBDHDe9DBByNfn3E0KnIukzJzJwsO 280Vlmprs4hEIvynL2SDvQpIYYXdmURJNY8+SsdZFCPOJS8wLyWTfeFyFOzA8mj1wnFB yHQwr6vK/jvByRvDIuf/LpK/jRSgwX9VX6wE5YWb/MsTRXP2xtc6ji1uspWmTYydILdU E1rLIIrMPe4DOj8gxWqmKFFn0Qi066tk7buZ3Uxo6vnbWPZHnzlPA20WjkJtNXn2EVaQ fenGQzaIaMCgDJiJit5By3a8JPNQIoCW858kG7RzBnnjTrN1fXKNsdfZqm1YWLPdtGYH UMvA== X-Gm-Message-State: AE9vXwMUpoYeiZLCUs215llSoWBr41MqYNWQxS7WI3nN34soUEvWJTtuNNXtKtRDP3mOrQ== X-Received: by 10.37.75.198 with SMTP id y189mr10681056yba.146.1473966955651; Thu, 15 Sep 2016 12:15:55 -0700 (PDT) Received: from localhost (nat-pool-rdu-t.redhat.com. [66.187.233.202]) by smtp.gmail.com with ESMTPSA id b7sm1934514ywc.53.2016.09.15.12.15.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Sep 2016 12:15:55 -0700 (PDT) From: Vincent Batts To: linux-btrfs@vger.kernel.org Cc: Vincent Batts Subject: [PATCH] btrfs-progs: subvolume verbose delete flag Date: Thu, 15 Sep 2016 15:15:50 -0400 Message-Id: <20160915191550.12371-2-vbatts@hashbangbash.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160915191550.12371-1-vbatts@hashbangbash.com> References: <20160915191550.12371-1-vbatts@hashbangbash.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There was already the logic for verbose output, but the flag parsing did not include it. Signed-off-by: Vincent Batts --- cmds-subvolume.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmds-subvolume.c b/cmds-subvolume.c index e7ef67d..f8c9f48 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -245,6 +245,7 @@ static const char * const cmd_subvol_delete_usage[] = { "", "-c|--commit-after wait for transaction commit at the end of the operation", "-C|--commit-each wait for transaction commit after deleting each subvolume", + "-v|--verbose verbose output of operations", NULL }; @@ -267,10 +268,11 @@ static int cmd_subvol_delete(int argc, char **argv) static const struct option long_options[] = { {"commit-after", no_argument, NULL, 'c'}, /* commit mode 1 */ {"commit-each", no_argument, NULL, 'C'}, /* commit mode 2 */ + {"verbose", no_argument, NULL, 'v'}, {NULL, 0, NULL, 0} }; - c = getopt_long(argc, argv, "cC", long_options, NULL); + c = getopt_long(argc, argv, "cCv", long_options, NULL); if (c < 0) break;