[gparted] Turn on resize2fs text progress bar (#709276)



commit 21e166c949bc89b55a6f427c820cd9f92edd3dfa
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Thu Oct 3 15:53:30 2013 +0100

    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

 src/ext2.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ext2.cc b/src/ext2.cc
index 38a70da..fe4e667 100644
--- a/src/ext2.cc
+++ b/src/ext2.cc
@@ -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( 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]