[yast-commit] r41364 - in /branches/SuSE-SLE-10-SP1-Branch/storage: package/yast2-storage.changes storage/src/modules/Storage.ycp
Author: fehr Date: Thu Oct 11 13:15:19 2007 New Revision: 41364 URL: http://svn.opensuse.org/viewcvs/yast?rev=41364&view=rev Log: - correctly compute maximal allowable cylinder (#273286) Modified: branches/SuSE-SLE-10-SP1-Branch/storage/package/yast2-storage.changes branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/modules/Storage.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=41364&r1=41363&r2=41364&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:15:19 2007 @@ -4,6 +4,7 @@ - add support for online resize of ext3 (feature #301943) - fix performance hog with large number of disks and swap areas (#267262) - fix bug in member function equalContent (#245734) +- correctly compute maximal allowable cylinder (#273286) ------------------------------------------------------------------- Mon Oct 8 10:49:37 CEST 2007 - fehr@suse.de Modified: branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/modules/Storage.ycp?rev=41364&r1=41363&r2=41364&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/modules/Storage.ycp (original) +++ branches/SuSE-SLE-10-SP1-Branch/storage/storage/src/modules/Storage.ycp Thu Oct 11 13:15:19 2007 @@ -2152,12 +2152,11 @@ { integer ret = MaxSizeLabelK(disk); y2milestone( "MaxCylLabel val_k:%1 cyl_size:%2", ret, disk["cyl_size"]:1 ); - integer cylk = disk["cyl_size"]:1/1024; - if( cylk<1 ) - cylk = 1; - y2milestone( "MaxCylLabel val_k:%1 cylk:%2", ret, cylk ); - ret = ret / cylk; - y2milestone( "MaxCylLabel ret %1", ret ); + integer cylk2 = disk["cyl_size"]:1/512; + if( cylk2<2 ) + cylk2 = 2; + y2milestone( "MaxCylLabel val_k:%1 cylk2:%2", ret, cylk2 ); + ret = ret*2 / cylk2 - 1; return( ret ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
fehr@svn.opensuse.org