summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index c1137575..d46064af 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -283,6 +283,7 @@ static const char * const cmd_subvol_list_usage[] = {
" to the given <path>",
"-o print only subvolumes bellow specified path",
"-u print the uuid of subvolumes (and snapshots)",
+ "-q print the parent uuid of the snapshots",
"-t print the result as a table",
"-s list snapshots only in the filesystem",
"-r list readonly subvolumes (including snapshots)",
@@ -323,7 +324,7 @@ static int cmd_subvol_list(int argc, char **argv)
optind = 1;
while(1) {
c = getopt_long(argc, argv,
- "aopsurg:c:t", long_options, NULL);
+ "aopqsurg:c:t", long_options, NULL);
if (c < 0)
break;
@@ -350,6 +351,9 @@ static int cmd_subvol_list(int argc, char **argv)
case 'u':
btrfs_list_setup_print_column(BTRFS_LIST_UUID);
break;
+ case 'q':
+ btrfs_list_setup_print_column(BTRFS_LIST_PUUID);
+ break;
case 'r':
flags |= BTRFS_ROOT_SUBVOL_RDONLY;
break;