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] a0158abbeb
Refactor resizing file system apply methods (#775932)
Bug 775932 - Refactor mostly applying of operations
This commit is contained in:
parent
6967d1f143
commit
c03c5d11dc
|
@ -2764,6 +2764,7 @@ bool GParted_Core::shrink_filesystem( const Partition & partition_old,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operationdetail.add_child( OperationDetail( _("shrink file system") ) );
|
||||||
bool success = resize_filesystem_implement( partition_old, partition_new, operationdetail );
|
bool success = resize_filesystem_implement( partition_old, partition_new, operationdetail );
|
||||||
operationdetail.get_last_child().set_status( success ? STATUS_SUCCES : STATUS_ERROR );
|
operationdetail.get_last_child().set_status( success ? STATUS_SUCCES : STATUS_ERROR );
|
||||||
return success;
|
return success;
|
||||||
|
|
Loading…
Reference in New Issue