From patchwork Fri Oct 2 16:41:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Burri X-Patchwork-Id: 7317671 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 B2075BEEA4 for ; Fri, 2 Oct 2015 16:50:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D43732078A for ; Fri, 2 Oct 2015 16:50:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02A4320769 for ; Fri, 2 Oct 2015 16:50:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752451AbbJBQuT (ORCPT ); Fri, 2 Oct 2015 12:50:19 -0400 Received: from www.digint.ch ([92.42.190.51]:55836 "EHLO mail.digint.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbbJBQuE (ORCPT ); Fri, 2 Oct 2015 12:50:04 -0400 Received: from tty0.ch (77-59-134-149.dclient.hispeed.ch [77.59.134.149]) by mail.digint.ch (Postfix) with SMTP id 4D1052F709F9; Fri, 2 Oct 2015 18:40:48 +0200 (CEST) Received: by tty0.ch (sSMTP sendmail emulation); Fri, 02 Oct 2015 18:41:29 +0200 From: axel@tty0.ch To: linux-btrfs@vger.kernel.org Cc: Axel Burri Subject: [PATCH 1/4] btrfs-progs: add -A option for subvolume list (print all available information) Date: Fri, 2 Oct 2015 18:41:20 +0200 Message-Id: <1443804083-876-2-git-send-email-axel@tty0.ch> X-Mailer: git-send-email 2.4.9 In-Reply-To: <1443804083-876-1-git-send-email-axel@tty0.ch> References: <1443804083-876-1-git-send-email-axel@tty0.ch> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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: Axel Burri --- Documentation/btrfs-subvolume.asciidoc | 2 ++ cmds-subvolume.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfs-subvolume.asciidoc b/Documentation/btrfs-subvolume.asciidoc index c187fd8..afbec83 100644 --- a/Documentation/btrfs-subvolume.asciidoc +++ b/Documentation/btrfs-subvolume.asciidoc @@ -114,6 +114,8 @@ print the UUID of the subvolume. print the parent uuid of subvolumes (and snapshots). -R:::: print the UUID of the sent subvolume, where the subvolume is the result of a receive operation +-A:::: +print all available subvolume information. -t:::: print the result as a table. -s:::: diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 82173c0..26a08f1 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -428,6 +428,7 @@ static const char * const cmd_subvol_list_usage[] = { "-u print the uuid of subvolumes (and snapshots)", "-q print the parent uuid of the snapshots", "-R print the uuid of the received snapshots", + "-A print all available subvolume information", "-t print the result as a table", "-s list snapshots only in the filesystem", "-r list readonly subvolumes (including snapshots)", @@ -471,7 +472,7 @@ static int cmd_subvol_list(int argc, char **argv) }; c = getopt_long(argc, argv, - "acdgopqsurRG:C:t", long_options, NULL); + "acdgopqsurRAG:C:t", long_options, NULL); if (c < 0) break; @@ -515,6 +516,9 @@ static int cmd_subvol_list(int argc, char **argv) case 'R': btrfs_list_setup_print_column(BTRFS_LIST_RUUID); break; + case 'A': + btrfs_list_setup_print_column(BTRFS_LIST_ALL); + break; case 'r': flags |= BTRFS_ROOT_SUBVOL_RDONLY; break;