summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremail.ahmedkamal@googlemail.com <>2008-07-30 13:29:28 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-07-30 13:29:28 -0400
commite9fa78e2ecad33b370caf452f79252eb1ab52bc7 (patch)
treef471170c8da348092cd592b28863c061b08cb6e6
parent26641e8d32df6448ec06e5e62f23b97bf006e710 (diff)
Cleanup btrfsctl help message
Many options were not mentioned in the usage message, fix that and cleaning up the brackets Signed-Off-By: Ahmed Kamal <email.ahmedkamal@googlemail.com>
-rw-r--r--btrfsctl.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/btrfsctl.c b/btrfsctl.c
index cc1b1ff0..82c5f30d 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -44,15 +44,16 @@ static inline int ioctl(int fd, int define, void *arg) { return 0; }
void print_usage(void)
{
- printf("usage: btrfsctl [ -s name ] [-d] [-r size] file_or_dir\n");
- printf("\t-d filename defragments one file\n");
- printf("\t-d directory defragments the entire Btree\n");
- printf("\t-s snap_name existing_subvol creates a new snapshot\n");
- printf("\t-s snap_name tree_root creates a new subvolume\n");
- printf("\t-r [+-]size[gkm] resize the FS\n");
- printf("\t-A device scans the device for a Btrfs filesystem\n");
- printf("\t-a scans all devices for Btrfs filesystems\n");
- printf("\t-c forces a single FS sync\n");
+ printf("usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]\n");
+ printf(" [-r size] [-A device] [-a] [-c]\n");
+ printf("\t-d filename: defragments one file\n");
+ printf("\t-d directory: defragments the entire Btree\n");
+ printf("\t-s snap_name: existing_subvol creates a new snapshot\n");
+ printf("\t-s snap_name: tree_root creates a new subvolume\n");
+ printf("\t-r [+-]size[gkm]: resize the FS by size amount\n");
+ printf("\t-A device: scans the device file for a Btrfs filesystem\n");
+ printf("\t-a: scans all devices for Btrfs filesystems\n");
+ printf("\t-c: forces a single FS sync\n");
printf("%s\n", BTRFS_BUILD_VERSION);
exit(1);
}