Re: [PATCH] btrfs-convert: show progress
From: cwillu <hidden>
Date: 2012-09-28 00:17:00
On Thu, Sep 27, 2012 at 6:02 PM, Alfredo Esteban [off-list ref] wrote:
Hello, I'm sending a patch to show progress of btrfs-convert command. I put a progress bar in the only heavy process: the btrfs metadata creation (due to CRC calculation):
Please include patches inline in the email, not as an attachment.
quoted
./btrfs-convert /dev/loop1Creating btrfs metadata [================================================] 100% Creating ext2fs image file... [DONE] Cleaning up system chunk... [DONE] Conversion complete. I just used "\r". I think it is a simple but effective approach without ncurses either other dependencies.
There should probably be some way to disable the progress bar (ideally defaulting to a istty check) so that log files don't capture hundreds if not thousands of lines of "[======== ]".