[parted-devel] [PATCH] Don't fail if unable to reread partition table

Colin Watson cjwatson at ubuntu.com
Wed Aug 6 11:47:55 UTC 2008


On Tue, Aug 05, 2008 at 06:12:05PM +0200, Soren Hansen wrote:
> I used to use parted 1.7.7 as this was what was shipped by Ubuntu and
> Debian up until very recently. I used parted to add a partition table to
> disk images that I'd be using for virtual machines.  
> When parted was updated to 1.8.8, this stopped working, since parted
> fails if telling the kernel to reread the partition table for the device
> in question fails. However, for disk images this makes little sense.

Hmm. Isn't the real bug here that it's trying to reread the partition
table on a disk image? How come disk->dev->type isn't PED_DEVICE_FILE
here?

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the parted-devel mailing list