From e9fa78e2ecad33b370caf452f79252eb1ab52bc7 Mon Sep 17 00:00:00 2001 From: "email.ahmedkamal@googlemail.com" <> Date: Wed, 30 Jul 2008 13:29:28 -0400 Subject: 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 --- btrfsctl.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'btrfsctl.c') 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); } -- cgit v1.2.3