On Thu, Sep 27, 2012 at 6:02 PM, Alfredo Esteban <aedelatorre@xxxxxxxxx> 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. >> ./btrfs-convert /dev/loop1 > Creating 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 "[======== ]". -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
