btrfs-progs: stat info for btrfs rescue chunk-recover
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 2 Sep 2015 12:22:31 +0000 (20:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 2 Sep 2015 16:56:54 +0000 (18:56 +0200)
commit2e53604e6db35f727f417326642a793b0b346938
treee30846ad573256eadde27b9ab83faa9fc7952128
parent8c6d4e6c7cb787d20f99b5c3c591b76e687b9483
btrfs-progs: stat info for btrfs rescue chunk-recover

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.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
chunk-recover.c