Author: ug Date: Thu Jul 15 14:22:48 2010 New Revision: 62265 URL: http://svn.opensuse.org/viewcvs/yast?rev=62265&view=rev Log: bugs fixed Modified: trunk/autoinstallation/VERSION trunk/autoinstallation/package/autoyast2.changes trunk/autoinstallation/src/include/autopart.ycp Modified: trunk/autoinstallation/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/VERSION?rev=62265&r1=62264&r2=62265&view=diff ============================================================================== --- trunk/autoinstallation/VERSION (original) +++ trunk/autoinstallation/VERSION Thu Jul 15 14:22:48 2010 @@ -1 +1 @@ -2.19.10 +2.20.0 Modified: trunk/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=62265&r1=62264&r2=62265&view=diff ============================================================================== --- trunk/autoinstallation/package/autoyast2.changes (original) +++ trunk/autoinstallation/package/autoyast2.changes Thu Jul 15 14:22:48 2010 @@ -1,4 +1,16 @@ ------------------------------------------------------------------- +Thu Jul 15 14:21:41 CEST 2010 - ug@suse.de + +- speed up partitioning calculation if a lot partitions are + reused (bnc#620212) + +------------------------------------------------------------------- +Fri Jul 9 09:51:51 CEST 2010 - ug@suse.de + +- an existing swap partition can accidently be reused + even if AutoYaST is not supposed to touch it (bnc#613366) + +------------------------------------------------------------------- Fri May 21 15:06:19 CEST 2010 - ug@suse.de - fixed a segfault by an uninitialized libstorage Modified: trunk/autoinstallation/src/include/autopart.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/include/autopart.ycp?rev=62265&r1=62264&r2=62265&view=diff ============================================================================== --- trunk/autoinstallation/src/include/autopart.ycp (original) +++ trunk/autoinstallation/src/include/autopart.ycp Thu Jul 15 14:22:48 2010 @@ -906,7 +906,16 @@ ``{ y2milestone( "start: gap section %1", e ); - if( part["max_cyl"]:0 <= e["end"]:0 && + // speed up partitioning calculation (bnc#620212) + boolean reuseCondition = true; + if( part["create"]:true == false && + (( haskey( part, "partition_nr" ) && part["partition_nr"]:0 != e["nr"]:0 )) ) { + y2milestone("gap can't be used. %1 != %2", part["partition_nr"]:0, e["nr"]:0 ); + reuseCondition = false; + } + + if( reuseCondition && + part["max_cyl"]:0 <= e["end"]:0 && part["cylinders"]:0 <= e["cylinders"]:0 && (!e["extended"]:false && (size(lg["free_pnr"]:[])>0 || ! creation_needed ) || e["extended"]:false && size(lg["ext_pnr"]:[])>0) @@ -1241,12 +1250,14 @@ foreach( list p, e["added"]:[], ``{ index = p[0]:0; + /* bnc#613366 - an existing swap partition can accidently be reused if( e["exists"]:false && ps[index,"mount"]:""=="swap" && e["swap"]:false ) { ret = ret + 100; y2milestone( "weight after swap reuse %1", ret ); } + */ if( ps[index,"want_cyl"]:0>0 ) { integer diff = ps[index,"want_cyl"]:0 - p[2]:0; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org