Turn on resize2fs text progress bar (#709276)
Turn on the text progress bar for the resize2fs command. Looks like: # resize2fs -p /dev/sda13 262144 resize2fs 1.41.12 (17-May-2010) Resizing the filesystem on /dev/sda13 to 262144 (4k) blocks. Begin pass 2 (max = 97177) Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 3 (max = 80) Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 4 (max = 5597) Updating inode references XXXXXXXXX------------------------------- Bug #709276 - Percentage indicator for subcommand
This commit is contained in:
parent
1b54123580
commit
21e166c949
|
@ -183,7 +183,7 @@ bool ext2::create( const Partition & new_partition, OperationDetail & operationd
|
|||
|
||||
bool ext2::resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition )
|
||||
{
|
||||
Glib::ustring str_temp = "resize2fs " + partition_new .get_path() ;
|
||||
Glib::ustring str_temp = "resize2fs -p " + partition_new .get_path() ;
|
||||
|
||||
if ( ! fill_partition )
|
||||
str_temp += " " + Utils::num_to_str( Utils::round( Utils::sector_to_unit(
|
||||
|
|
Loading…
Reference in New Issue