summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-03-13 10:37:27 -0500
committerDavid Sterba <dsterba@suse.cz>2013-03-14 23:46:18 +0100
commitc27d89f959fa1ace47e03517d037477ce7f7de96 (patch)
treef64a8b9ef6e27751e56f7ca8ac18510931209f95 /mkfs.c
parent44a33d0d14856a6c8c309c98e3223adaca452a30 (diff)
btrfs-progs: document force option in mkfs usage(); add long opt
I missed updating the mkfs.btrfs usage() when I added the option to force fs overwrite. Update that, and while we're at it add a long option, since all other commands have long counterparts. Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkfs.c b/mkfs.c
index b2520cee..c8cb3950 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -327,6 +327,7 @@ static void print_usage(void)
fprintf(stderr, "\t -A --alloc-start the offset to start the FS\n");
fprintf(stderr, "\t -b --byte-count total number of bytes in the FS\n");
fprintf(stderr, "\t -d --data data profile, raid0, raid1, raid5, raid6, raid10, dup or single\n");
+ fprintf(stderr, "\t -f --force force overwrite of existing filesystem\n");
fprintf(stderr, "\t -l --leafsize size of btree leaves\n");
fprintf(stderr, "\t -L --label set a label\n");
fprintf(stderr, "\t -m --metadata metadata profile, values like data profile\n");
@@ -385,6 +386,7 @@ static char *parse_label(char *input)
static struct option long_options[] = {
{ "alloc-start", 1, NULL, 'A'},
{ "byte-count", 1, NULL, 'b' },
+ { "force", 0, NULL, 'f' },
{ "leafsize", 1, NULL, 'l' },
{ "label", 1, NULL, 'L'},
{ "metadata", 1, NULL, 'm' },