Bug 26060

Summary: show the progress of badblocks during mkfs
Product: Branch p6 Reporter: Ivan Zakharyaschev <imz>
Component: alterator-vmAssignee: Andrey Cherepanov <cas>
Status: NEW --- QA Contact: QA p6 <qa-p6>
Severity: enhancement    
Priority: P3    
Version: не указана   
Hardware: all   
OS: Linux   
Bug Depends on: 31691    
Bug Blocks:    

Description Ivan Zakharyaschev 2011-08-14 14:16:21 MSK
alterator-vm-0.4.1-alt15

If checking for bad blocks was selected when creating a new filesystem in alterator-vm, the process will take a lot of time (already around 12 hours for me for a 500Gb disc).

It would be nice if the progress was shown in the GUI, or the estimated time to complete.

badblocks does have an option to show the progress -- according to "man badblocks":

       -s     Show the progress of the scan by writing out rough percentage completion of the current badblocks pass  over  the  disk.   Note
              that badblocks may do multiple test passes over the disk, in particular if the -p or -w option is requested by the user.

badblocks was called by mkfs -- an excerpt from "pstree":

     ├─xfce4-panel─┬─Terminal─┬─bash
     │             │          ├─bash───su───bash─┬─acc─┬─alterator-brows───2*[{alterator-brow}]
     │             │          │                  │     ├─alteratord─┬─help
     │             │          │                  │     │            ├─menu
     │             │          │                  │     │            ├─mke2fs───badblocks
     │             │          │                  │     │            └─2*[{alteratord}]
     │             │          │                  │     └─{acc}
     │             │          │                  └─pstree