[gparted] Allow ntfsresize command to report real-time %age progress (#697662)



commit a8b699d896a329c66d412032d7f33139d9a0538d
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Tue Apr 9 22:54:16 2013 +0100

    Allow ntfsresize command to report real-time %age progress (#697662)
    
    Remove the -P, no progress bar option, from the ntfsresize command.
    This allows the command to display the %age complete on its output which
    is displayed in the operation details dialog, updated in real time.
    Possible since:
        Bug #685740 - Refactor to use asynchronous command execution
    
    Bug #697662 - Do not hide the progress of the tools used

 src/ntfs.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ntfs.cc b/src/ntfs.cc
index d90544d..59c1da9 100644
--- a/src/ntfs.cc
+++ b/src/ntfs.cc
@@ -207,7 +207,7 @@ bool ntfs::resize( const Partition & partition_new, OperationDetail & operationd
                size = " -s " + Utils::num_to_str( Utils::round( Utils::sector_to_unit(
                                partition_new .get_sector_length(), partition_new .sector_size, UNIT_BYTE ) ) 
) ;
        }
-       Glib::ustring cmd = "ntfsresize -P --force --force" + size ;
+       Glib::ustring cmd = "ntfsresize --force --force" + size ;
 
        //simulation..
        operationdetail .add_child( OperationDetail( _("run simulation") ) ) ;
@@ -249,7 +249,7 @@ bool ntfs::copy( const Partition & src_part,
 
 bool ntfs::check_repair( const Partition & partition, OperationDetail & operationdetail )
 {
-       return ! execute_command( "ntfsresize -P -i -f -v " + partition .get_path(), operationdetail ) ; 
+       return ! execute_command( "ntfsresize -i -f -v " + partition .get_path(), operationdetail ) ;
 }
 
 } //GParted


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