btrfs-progs: convert: show progress by default
Subsystems (2)
PATCH 1/1 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.
--- Documentation/btrfs-convert.txt | 2 +- btrfs-convert.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Documentation/btrfs-convert.txt +1 -1
@@ -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 -----------
btrfs-convert.c +3 -3
@@ -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 ;
Signature · 1 line
2.1.3
Quoted 2 lines · David Sterba
+
printf("\t-p show converting progress (default)\n");
A quick look a this it looks like you've added a mandatory «option» since the "case" which handle -p can only turn on this flag. Logic should be switched to -q for quiet mode instead.
Quoted 7 lines · Jérôme Poulin
Quoted 2 lines · David Sterba
+
printf("\t-p show converting progress (default)\n");A quick look a this it looks like you've added a mandatory «option» since the "case" which handle -p can only turn on this flag. Logic should be switched to -q for quiet mode instead.
I'll add an option to disable the progress, that'd still print the main phases like before. Thanks.