[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Possible enumeration approach



> This is a hack that hans proposed for the parted issue.  Don't see this
> causing any problems.
> clumens: what do you think of this for a temporary solution for the
> enumeration issue?

Applying this patch to parted in package CVS, adding the following patch
to pyparted, rebuilding both, and putting both in an updates.img fixes
the problem for me in my simple test case.

diff --git a/src/pydisk.c b/src/pydisk.c
index 82500e5..84dcbd4 100644
--- a/src/pydisk.c
+++ b/src/pydisk.c
@@ -1403,6 +1403,9 @@ PyObject *py_ped_disk_remove_partition(PyObject
*s, PyObject *args) {
         }
     }
 
+    if (ped_disk_enumerate_on())
+        ped_disk_toggle_do_enumerate();
+
     ret = ped_disk_remove_partition(disk, out_part);
     if (ret == 0) {
         if (partedExnRaised) {

My simple test case is a partition layout with multiple logical
partitions.  Having that as a pre-existing layout and then doing
autopart consistently fails for me.  These patches correct that.

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]