From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cn.fujitsu.com ([59.151.112.132]:32895 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751233AbbIBJxD (ORCPT ); Wed, 2 Sep 2015 05:53:03 -0400 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id t829qpbd024394 for ; Wed, 2 Sep 2015 17:52:51 +0800 From: Zhao Lei To: CC: Zhao Lei Subject: [PATCH v2 0/3] btrfs-progs: stat info for btrfs rescue chunk-recover Date: Wed, 2 Sep 2015 17:51:22 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-btrfs-owner@vger.kernel.org List-ID: chunk-recover need to use many many time in scan_devices(), and no output in screen: # btrfs rescue chunk-recover /dev/sda6 (no output here, but need long time) To notice user that "the command is not hang", this patch add dynamic updated stat information in above period: # btrfs rescue chunk-recover /dev/sda6 Scanning: DONE in dev[0], 19998441472 in dev[1], DONE in dev[2] (until) Scanning: DONE in dev0, DONE in dev1, DONE in dev2 Check chunks successfully with no orphans Recover the chunk tree successfully. Changelog v1->v2: [PATCH 3/3] in v1 lost a little cleanup, added in v2. Zhao Lei (3): btrfs-progs: use for loop for scan_devices btrfs-progs: stat info for btrfs rescue chunk-recover btrfs-progs: Fix some spelling typo in chunk-recover.c chunk-recover.c | 85 +++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 59 insertions(+), 26 deletions(-) -- 1.8.5.1