[PATCH parted 1/2] libparted: push/pop update mode around ped_disk_set_flag

2009-12-17 Thread Hans de Goede
Disk flags can change how the metadata gets allocated, so push/pop update mode around ops->disk_set_flag, so that the metadata gets re-allocated. * libparted/disk.c (ped_disk_set_flag): push/pop update mode. --- libparted/disk.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(

[PATCH parted 2/2] dos: Honor cylinder alignment disk flag when allocating metadata

2009-12-17 Thread Hans de Goede
* libparted/labels/dos.c (add_startend_metadata): Honor cylinder alignment flag. --- libparted/labels/dos.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/libparted/labels/dos.c b/libparted/labels/dos.c index ea8fc0b..581506e 100644 --- a/libparted/labels/dos.c +++ b/

Error initialising SCSI device /dev/sda - Invalid argument and parted: double free or corruption (out)

2009-12-17 Thread Rudy Gevaert
(I tried to report through the website but this message gets rejected as 'potential' spam :() Hello, I'm using FAI to automatically install machines. I'm getting the above parted error in the following situation. FAI is run in a Xen domU calling parted on a LVM volume. I also get this