[parted-devel] Bug: Removal of BLKPG causes regression of ability to manipulate disks with other partitions in use

Phillip Susi psusi at cfl.rr.com
Thu Mar 18 16:12:05 UTC 2010


On 3/18/2010 12:09 PM, Hans de Goede wrote:
> That would end up with the same result as we have now, the commit() would
> fail as the BLKRRPART would fail on the in use partitions.
> 
> So by taking out the BLKRRPART we have the same end result with
> significantly
> less code.

No, it wouldn't.  BLKRRPART fails if ANY partition on the disk is in
use.  The BLKPG ioctls allow you to add a new partition whenever you
like, and remove a partition as long as that specific partition is not
in use.



More information about the parted-devel mailing list