[parted-devel] [PATCH 4/4] Fix resizepart when saying no to the shrink warning

Phil Susi psusi at ubuntu.com
Mon May 7 19:45:06 BST 2018


On 5/7/2018 1:55 PM, Phillip Susi wrote:
> Resizepart has to change the PedDisk to see if there are any problems
> in doing so, then gives the warning about shirnking the partition.
> If the user answers No ( do not change ), it did not commit the
> changes to disk, but did keep them around in memory, so they could
> later be committed by another command.  Fix it to discard the modified
> PedDisk.

Well nevermind.  It seems that this patch isn't needed since when the
command returns a failure code, the ui loop discards the disk object.
Took me a few minutes to figure out why I couldn't get the new test case
to fail with the old code.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/parted-devel/attachments/20180507/1ab31ca8/attachment.sig>


More information about the parted-devel mailing list