Mailinglist Archive: yast-commit (687 mails)

< Previous Next >
[yast-commit] r43620 - in /trunk/storage: package/yast2-storage.changes storage/src/include/do_proposal_flexible.ycp storage/src/inst_custom_part.ycp storage/src/modules/Storage.ycp
  • From: fehr@xxxxxxxxxxxxxxxx
  • Date: Tue, 15 Jan 2008 14:44:14 -0000
  • Message-id: <20080115144414.CC0F631C39@xxxxxxxxxxxxxxxx>
Author: fehr
Date: Tue Jan 15 15:44:14 2008
New Revision: 43620

URL: http://svn.opensuse.org/viewcvs/yast?rev=43620&view=rev
Log:
adapt size restrictions of disk label to parted (#352484)

Modified:
trunk/storage/package/yast2-storage.changes
trunk/storage/storage/src/include/do_proposal_flexible.ycp
trunk/storage/storage/src/inst_custom_part.ycp
trunk/storage/storage/src/modules/Storage.ycp

Modified: trunk/storage/package/yast2-storage.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=43620&r1=43619&r2=43620&view=diff
==============================================================================
--- trunk/storage/package/yast2-storage.changes (original)
+++ trunk/storage/package/yast2-storage.changes Tue Jan 15 15:44:14 2008
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Jan 15 15:41:36 CET 2008 - fehr@xxxxxxx
+
+- adapt size restrictions of disk label to parted (#352484)
+
+-------------------------------------------------------------------
Thu Jan 10 13:35:31 CET 2008 - fehr@xxxxxxx

- fix problem of md parity propagation to libstorage (#349896)
@@ -165,7 +170,7 @@
-------------------------------------------------------------------
Mon Sep 10 19:15:08 CEST 2007 - fehr@xxxxxxx

-- do not autodetect NFS mount in instsys (#308618)
+- do not autodetect NFS mounts in instsys (#308618)
- change windows detection to cover also Vista (#307802)
- be more robust if /proc/swaps in invalid (#309050)


Modified: trunk/storage/storage/src/include/do_proposal_flexible.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/do_proposal_flexible.ycp?rev=43620&r1=43619&r2=43620&view=diff
==============================================================================
--- trunk/storage/storage/src/include/do_proposal_flexible.ycp (original)
+++ trunk/storage/storage/src/include/do_proposal_flexible.ycp Tue Jan 15
15:44:14 2008
@@ -1667,7 +1667,7 @@
}
integer max_prim = Partitions::MaxPrimary(disk["label"]:"msdos");
boolean has_ext = Partitions::HasExtended( disk["label"]:"msdos" );
- integer max_pos_cyl = Storage::MaxCylLabel( disk );
+ integer max_pos_cyl = Storage::MaxCylLabel( disk, 0 );
integer end = 0;
if( has_ext )
{
@@ -1678,8 +1678,8 @@
if( size(ext)>0 )
{
end = ext["region",0]:0 + ext["region",1]:1-1;
- if( end > max_pos_cyl )
- end = max_pos_cyl;
+ if( end > ext["region",0]:0 + max_pos_cyl )
+ end = ext["region",0]:0 + max_pos_cyl;
gap = get_gaps( ext["region",0]:0, end,
filter( map p, plist, ``(p["nr"]:0>max_prim)),
add_exist_linux );
@@ -1699,7 +1699,6 @@
if( end > max_pos_cyl )
end = max_pos_cyl;
gap = (list<map>)union( gap, get_gaps( 0, end, plist, add_exist_linux ));
- gap = filter( map g, gap, ``(g["end"]:0<=max_pos_cyl) );
integer av_size = 0;
gap = maplist( map e, gap,
``{

Modified: trunk/storage/storage/src/inst_custom_part.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/inst_custom_part.ycp?rev=43620&r1=43619&r2=43620&view=diff
==============================================================================
--- trunk/storage/storage/src/inst_custom_part.ycp (original)
+++ trunk/storage/storage/src/inst_custom_part.ycp Tue Jan 15 15:44:14 2008
@@ -1256,7 +1256,7 @@
{
////////////////////// STEP D /////////////////////

- integer max_cyl = Storage::MaxCylLabel(disk);
+ integer max_cyl = Storage::MaxCylLabel(disk,int_start_cyl);
int_end_cyl = int_start_cyl +
ToEndRegion( str_start_cyl, str_end_part,
cyl_size ) - 1;

Modified: trunk/storage/storage/src/modules/Storage.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=43620&r1=43619&r2=43620&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Tue Jan 15 15:44:14 2008
@@ -2399,11 +2399,11 @@
integer ret = 0;
string tmp = disk["label"]:"";
ret = LibStorage::StorageInterface::maxSizeLabelK( sint, tmp );
- y2milestone( "MaxSizeLabel %1 is %2", disk["label"]:"", ret );
+ y2milestone( "MaxSizeLabelK %1 is %2", disk["label"]:"", ret );
return( ret );
}

-global integer MaxCylLabel( map disk )
+global integer MaxCylLabel( map disk, integer start_cyl )
{
integer ret = MaxSizeLabelK(disk);
y2milestone( "MaxCylLabel val_k:%1 cyl_size:%2", ret, disk["cyl_size"]:1 );
@@ -2412,6 +2412,8 @@
cylk2 = 2;
y2milestone( "MaxCylLabel val_k:%1 cylk2:%2", ret, cylk2 );
ret = ret*2 / cylk2 - 1;
+ ret = ret + start_cyl;
+ y2milestone( "MaxCylLabel ret:%1", ret );
return( ret );
}


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages