diff options
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r-- | cmds-subvolume.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 3b4edb63..58e89830 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -260,7 +260,7 @@ static int cmd_subvol_delete(int argc, char **argv) } static const char * const cmd_subvol_list_usage[] = { - "btrfs subvolume list [-apurt] [-s 0|1] [-g [+|-]value] [-c [+|-]value] " + "btrfs subvolume list [-apurts] [-g [+|-]value] [-c [+|-]value] " "[--sort=gen,ogen,rootid,path] <path>", "List subvolumes (and snapshots)", "", @@ -268,8 +268,7 @@ static const char * const cmd_subvol_list_usage[] = { "-a print all the subvolumes in the filesystem.", "-u print the uuid of subvolumes (and snapshots)", "-t print the result as a table", - "-s value list snapshots with generation in ascending/descending order", - " (1: ascending, 0: descending)", + "-s list snapshots only in the filesystem", "-r list readonly subvolumes (including snapshots)", "-g [+|-]value", " filter the subvolumes by generation", @@ -292,7 +291,6 @@ static int cmd_subvol_list(int argc, char **argv) int fd; u64 top_id; int ret; - int order; int c; char *subvol; int is_tab_result = 0; @@ -308,7 +306,7 @@ static int cmd_subvol_list(int argc, char **argv) optind = 1; while(1) { c = getopt_long(argc, argv, - "aps:urg:c:t", long_options, NULL); + "apsurg:c:t", long_options, NULL); if (c < 0) break; @@ -323,13 +321,9 @@ static int cmd_subvol_list(int argc, char **argv) is_tab_result = 1; break; case 's': - order = atoi(optarg); btrfs_list_setup_filter(&filter_set, BTRFS_LIST_FILTER_SNAPSHOT_ONLY, 0); - btrfs_list_setup_comparer(&comparer_set, - BTRFS_LIST_COMP_OGEN, - !order); btrfs_list_setup_print_column(BTRFS_LIST_OGENERATION); btrfs_list_setup_print_column(BTRFS_LIST_OTIME); |