summaryrefslogtreecommitdiff
path: root/btrfs.c
diff options
context:
space:
mode:
authorAndreas Philipp <philipp.andreas@gmail.com>2011-07-03 00:26:39 +0200
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:59 -0400
commit97a3182fbf1b9086a90fcb40d4af197c376e6b5e (patch)
treeaaa4ebf4f08651584c556e4211bb9cf9e0824d47 /btrfs.c
parentfd635cdc2d34ed8a1314dc1eef410e0259a796cd (diff)
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 <philipp.andreas@gmail.com> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
Diffstat (limited to 'btrfs.c')
-rw-r--r--btrfs.c6
1 files changed, 4 insertions, 2 deletions
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", "<path>\n"
+ { do_subvol_list, -1, "subvolume list", "[-p] <path>\n"
"List the snapshot/subvolume of a filesystem.",
- NULL
+ "[-p] <path>\n"
+ "List the snapshot/subvolume of a filesystem.\n"
+ "-p print parent ID"
},
{ do_set_default_subvol, 2,
"subvolume set-default", "<id> <path>\n"