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

Bug#308619: autopartkit: patch to fix temporarily



Package: autopartkit
Followup-For: Bug #308619

This is an easy fix, that leaves the sorting to the editor of the autopartkit table. 

The sort methide wasn't really the correct anyway, cause it only looked
at the minimal size - not the actually size. I guess the correct methode
would have been to first sort the partitions after the actually size,
and then - when the partitions are mounted - use the mountpoint.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-x300
Locale: LANG=nb_NO, LC_CTYPE=nb_NO (charmap=ISO-8859-1)
--- autopartkit-1.08-org/autopartkit.c	2005-03-19 13:49:35.000000000 +0100
+++ autopartkit-1.08/autopartkit.c	2005-05-13 22:54:26.000000000 +0200
@@ -702,8 +702,11 @@
 	    }
     }
 
+    /* DIsabled this for now - this dont work if you want *
+     * to mount a larger partition /var/lib under the     *
+     * smaller /var                                       */
     /* Sort the rest by minsize, the largest first */
-    qsort(&dest[1], count - 1, sizeof(dest[0]),  dr_minsize_compare);
+    /* qsort(&dest[1], count - 1, sizeof(dest[0]),  dr_minsize_compare); */
 }
 
 

Reply to: