Author: fehr
Date: Thu Oct 11 13:12:17 2007
New Revision: 41362
URL: http://svn.opensuse.org/viewcvs/yast?rev=41362&view=rev
Log:
fix performance hog with large number of disks and swap areas (#267262)
Modified:
branches/SuSE-SLE-10-SP1-Branch/storage/package/yast2-storage.changes
branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/auto_part_create.ycp
branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/do_proposal_flexible.ycp
Modified: branches/SuSE-SLE-10-SP1-Branch/storage/package/yast2-storage.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/storage/package/yast2-storage.changes?rev=41362&r1=41361&r2=41362&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP1-Branch/storage/package/yast2-storage.changes (original)
+++ branches/SuSE-SLE-10-SP1-Branch/storage/package/yast2-storage.changes Thu Oct 11 13:12:17 2007
@@ -2,6 +2,7 @@
Thu Oct 11 13:08:33 CEST 2007 - fehr@suse.de
- add support for online resize of ext3 (feature #301943)
+- fix performance hog with large number of disks and swap areas (#267262)
-------------------------------------------------------------------
Mon Oct 8 10:49:37 CEST 2007 - fehr@suse.de
Modified: branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/auto_part_create.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/auto_part_create.ycp?rev=41362&r1=41361&r2=41362&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/auto_part_create.ycp (original)
+++ branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/auto_part_create.ycp Thu Oct 11 13:12:17 2007
@@ -27,6 +27,7 @@
y2milestone( "create_partitions disk:%1",
haskey(disk,"partitions")?remove(disk,"partitions"):disk );
y2milestone( "create_partitions partitions %1", partitions );
+ flex_init_swapable( tgmap );
boolean ret = false;
boolean has_flex = has_flex_proposal();
string vm = Storage::ProposalVM();
Modified: branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/do_proposal_flexible.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/do_proposal_flexible.ycp?rev=41362&r1=41361&r2=41362&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/do_proposal_flexible.ycp (original)
+++ branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/include/do_proposal_flexible.ycp Thu Oct 11 13:12:17 2007
@@ -77,6 +77,32 @@
}
return( ret );
};
+
+
+map swapable = $[];
+
+define void flex_init_swapable( map