diff options
author | Koen De Wit <koen.de.wit@oracle.com> | 2013-03-27 14:54:12 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-04-23 18:56:21 +0200 |
commit | c38d9ca6f20787b7710db8ee4763e47e981a02b6 (patch) | |
tree | 5e2fe63ab1bd98daaa46d6e16a098833c79dee31 /cmds-subvolume.c | |
parent | d93cad2677613b0a31315e428ead5339612a4b1c (diff) |
btrfs-progs: add quota-related info to usage messages
Extending usage messages with some info on the quota functionality:
- The -i option of "subvol create" and "subvol snapshot" was not
documented
- The -c option of "qgroup limit" is the default option
- The "qouta rescan" command is not yet implemented, while it should be
executed after enabling quota on a non-empty filesystem.
Signed-off-by: Koen De Wit <koen.de.wit@oracle.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r-- | cmds-subvolume.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 74e21307..e97297a9 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -61,10 +61,13 @@ static int test_isdir(char *path) } static const char * const cmd_subvol_create_usage[] = { - "btrfs subvolume create [<dest>/]<name>", + "btrfs subvolume create [-i <qgroupid>] [<dest>/]<name>", "Create a subvolume", "Create a subvolume <name> in <dest>. If <dest> is not given", "subvolume <name> will be created in the current directory.", + "", + "-i <qgroupid> add the newly created subvolume to a qgroup. This", + " option can be given multiple times.", NULL }; @@ -481,11 +484,14 @@ out: static const char * const cmd_snapshot_usage[] = { "btrfs subvolume snapshot [-r] <source> [<dest>/]<name>", + "btrfs subvolume snapshot [-r] [-i <qgroupid>] <source> [<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", "", - "-r create a readonly snapshot", + "-r create a readonly snapshot", + "-i <qgroupid> add the newly created snapshot to a qgroup. This", + " option can be given multiple times.", NULL }; |