From ddb0ba2dad63898020df7f6e708d382155229be0 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 27 Feb 2015 16:30:05 +0100 Subject: [PATCH] btrfs-progs: convert: show progress by default Agreed by several people, showing progress by default makes sense as conversion is a one-time and long running action. Signed-off-by: David Sterba --- Documentation/btrfs-convert.txt | 2 +- btrfs-convert.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/btrfs-convert.txt b/Documentation/btrfs-convert.txt index e508c34..1709197 100644 --- a/Documentation/btrfs-convert.txt +++ b/Documentation/btrfs-convert.txt @@ -30,7 +30,7 @@ set filesystem label during conversion. -L:: use label from the converted filesystem. -p:: -Show progress of conversion. +Show progress of conversion, on by default. EXIT STATUS ----------- diff --git a/btrfs-convert.c b/btrfs-convert.c index da10ad6..730fead 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -2759,14 +2759,14 @@ fail: static void print_usage(void) { - printf("usage: btrfs-convert [-d] [-i] [-n] [-r] [-l label] [-L] device\n"); + printf("usage: btrfs-convert [-d] [-i] [-n] [-r] [-l label] [-L] [-p] device\n"); printf("\t-d disable data checksum\n"); printf("\t-i ignore xattrs and ACLs\n"); printf("\t-n disable packing of small files\n"); printf("\t-r roll back to ext2fs\n"); printf("\t-l LABEL set filesystem label\n"); printf("\t-L use label from converted fs\n"); - printf("\t-p show converting progress\n"); + printf("\t-p show converting progress (default)\n"); } int main(int argc, char *argv[]) @@ -2778,7 +2778,7 @@ int main(int argc, char *argv[]) int rollback = 0; int copylabel = 0; int usage_error = 0; - int progress = 0; + int progress = 1; char *file; char *fslabel = NULL; -- 2.7.4