[parted-devel] Possible bug on dvh label code

Otavio Salvador otavio at debian.org
Fri Apr 20 14:44:06 UTC 2007


Otavio Salvador <otavio at debian.org> writes:

> It then raises an exception of overlaping partitions. This then return
> 0 and goes on cascate until returning without getting back to
> update_mode 0.

I forgot to add here that to "fix" the update_mode problem I tryed the
bellow patch:

#v+
diff --git a/libparted/labels/dvh.c b/libparted/labels/dvh.c
index dce8e5c..1ea8361 100644
--- a/libparted/labels/dvh.c
+++ b/libparted/labels/dvh.c
@@ -138,7 +138,7 @@ dvh_duplicate (const PedDisk* disk)

        PED_ASSERT (old_dvh_disk_data != NULL, goto error);

-       new_disk = _ped_disk_alloc (disk->dev, &dvh_disk_type);
+       new_disk = ped_disk_new_fresh (disk->dev, &dvh_disk_type);
        if (!new_disk)
                goto error;

#v-

It then make the overlaping problem. I'm still looking why it does it.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list