[parted-devel] [PATCH v2] parted: Fix resizepart command

Phil Susi psusi at ubuntu.com
Fri Sep 22 12:47:04 UTC 2017


On 9/21/2017 2:57 PM, John Gilmore wrote:
>> I always intended to come up with some way for a script that really
>> wants to shrink an in use partition to indicate that so as to bypass
>> this check, but otherwise to keep an errant script from trashing data.
> 
> You could make a "shrinkpart" command that scripts could use.  This
> would pass a flag to libparted to distinguish it from "resizepart".

Come to think of it, that check isn't in libparted iirc, so parted
proper could just check for a -f flag.




More information about the parted-devel mailing list