[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:04:37 UTC 2010


On 3/18/2010 11:45 AM, Hans de Goede wrote:
> Hi,

Hello ;)

> It was removed because it lacked proper error checking, The 1.8 code was
> ignoring BLKRRPART errors (such as for example those hrown by busy
> partitions), which allowed one to modify partitions which are not in use.
> 
> But this meant that no proper error checking was done, so if the user
> did not exactly know what he was doing he parted would say all was fine,
> while in reality the kernels view of the partitions did not match the
> new layout. Since this is dangerous and error prone the use of
> BLKRRPART was removed.

Why not add error checking then instead of throwing it out altogether?
Seems like curing the disease by killing the patient.



More information about the parted-devel mailing list