diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2013-07-23 10:43:21 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-08-09 14:32:37 +0200 |
commit | 3ca706a6ee813300b30e1603076b3e356c0deb93 (patch) | |
tree | eee29309e11a32105a22545d7c72170c0e4d9326 /cmds-subvolume.c | |
parent | 2b2201bd094dd1d8d0ab2d119f36e107591f10c1 (diff) |
btrfs-progs: Update the usage strings of some cmds
Update the usage strings of some cmds to keep the them consistent with
the source.
Also some minor changes are done to fit the man page syntax.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r-- | cmds-subvolume.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 6c6a6986..b1e53610 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -83,7 +83,7 @@ static int cmd_subvol_create(int argc, char **argv) optind = 1; while (1) { - int c = getopt(argc, argv, "c:i:r"); + int c = getopt(argc, argv, "c:i:"); if (c < 0) break; @@ -287,7 +287,7 @@ out: * - lowercase for enabling specific items in the output */ static const char * const cmd_subvol_list_usage[] = { - "btrfs subvolume list [-agopurts] [-G [+|-]value] [-C [+|-]value] " + "btrfs subvolume list [options] [-G [+|-]value] [-C [+|-]value] " "[--sort=gen,ogen,rootid,path] <path>", "List subvolumes (and snapshots)", "", @@ -476,11 +476,12 @@ out: } static const char * const cmd_snapshot_usage[] = { - "btrfs subvolume snapshot [-r] <source> [<dest>/]<name>", - "btrfs subvolume snapshot [-r] [-i <qgroupid>] <source> [<dest>/]<name>", + "btrfs subvolume snapshot [-r] <source> <dest>|[<dest>/]<name>", + "btrfs subvolume snapshot [-r] [-i <qgroupid>] <source> <dest>|[<dest>/]<name>", "Create a snapshot of the subvolume", "Create a writable/readonly snapshot of the subvolume <source> with", - "the name <name> in the <dest> directory", + "the name <name> in the <dest> directory. If only <dest> is given,", + "the subvolume will be named the basename of <source>.", "", "-r create a readonly snapshot", "-i <qgroupid> add the newly created snapshot to a qgroup. This", |