[gparted] Add lost "shrink file system" operation detail message (#775932)



commit c03c5d11dc505397bf36a33976c29df43e08f29a
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Fri Dec 16 16:07:15 2016 +0000

    Add lost "shrink file system" operation detail message (#775932)
    
    The details for a file system shrink operation look like this with the
    "shrink file system" message being missing:
    
        Shrink /dev/sdb1 from 128.00 MiB to 100.00 MiB
        + calibrate /dev/sdb1
        + check file system on /dev/sdb1 for errors and (if possible) fix them
          + e2fsck -f -y -v -C 0 /dev/sdb1
          + resize2fs -p /dev/sdb1 102400K
        + shrink partition from 128.00 MiB to 100.00 MiB
    
    This earlier commit [1] in the series dropped the message while moving
    code from resize_filesystem() to shrink_filesystem().  Re-add the
    message back.
    
    [1] a0158abbeb4b1116c26cfee65bd97c5063e54936
        Refactor resizing file system apply methods (#775932)
    
    Bug 775932 - Refactor mostly applying of operations

 src/GParted_Core.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index b7ae4be..2bc1686 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -2764,6 +2764,7 @@ bool GParted_Core::shrink_filesystem( const Partition & partition_old,
                return false;
        }
 
+       operationdetail.add_child( OperationDetail( _("shrink file system") ) );
        bool success = resize_filesystem_implement( partition_old, partition_new, operationdetail );
        operationdetail.get_last_child().set_status( success ? STATUS_SUCCES : STATUS_ERROR );
        return success;


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