From patchwork Fri Feb 27 15:32:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 5901401 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 19B599F269 for ; Fri, 27 Feb 2015 15:32:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3FC4120166 for ; Fri, 27 Feb 2015 15:32:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A76120155 for ; Fri, 27 Feb 2015 15:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754742AbbB0Pcs (ORCPT ); Fri, 27 Feb 2015 10:32:48 -0500 Received: from cantor2.suse.de ([195.135.220.15]:36302 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753405AbbB0Pcr (ORCPT ); Fri, 27 Feb 2015 10:32:47 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 80FA1AC77 for ; Fri, 27 Feb 2015 15:32:46 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 4BE3ADAA1B; Fri, 27 Feb 2015 16:32:46 +0100 (CET) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH] btrfs-progs: convert: show progress by default Date: Fri, 27 Feb 2015 16:32:45 +0100 Message-Id: <1425051165-23376-1-git-send-email-dsterba@suse.cz> X-Mailer: git-send-email 2.1.3 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 e508c34b4f66..170919706e71 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 da10ad668ea6..730fead4a86c 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;