From 97a3182fbf1b9086a90fcb40d4af197c376e6b5e Mon Sep 17 00:00:00 2001 From: Andreas Philipp Date: Sun, 3 Jul 2011 00:26:39 +0200 Subject: print parent ID in btrfs suvolume list There was some discussion on "where" subvolumes live in. Why do we not simply print the parent ID for each subvolume in btrfs subvolume list? This patch adds this functionality when called with parameter "-p". Signed-off-by: Andreas Philipp Signed-off-by: Hugo Mills --- btrfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'btrfs.c') diff --git a/btrfs.c b/btrfs.c index ff84260c..a8553646 100644 --- a/btrfs.c +++ b/btrfs.c @@ -66,9 +66,11 @@ static struct Command commands[] = { "not passed).", NULL }, - { do_subvol_list, 1, "subvolume list", "\n" + { do_subvol_list, -1, "subvolume list", "[-p] \n" "List the snapshot/subvolume of a filesystem.", - NULL + "[-p] \n" + "List the snapshot/subvolume of a filesystem.\n" + "-p print parent ID" }, { do_set_default_subvol, 2, "subvolume set-default", " \n" -- cgit v1.2.3