Author: ug Date: Tue Jun 16 14:10:04 2009 New Revision: 57575 URL: http://svn.opensuse.org/viewcvs/yast?rev=57575&view=rev Log: cloning striped LVM fixed (bnc#513509) Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartPlan.ycp branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartition.ycp Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes?rev=57575&r1=57574&r2=57575&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes (original) +++ branches/tmp/SLE-11-SP1-Stash/autoinstallation/package/autoyast2.changes Tue Jun 16 14:10:04 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Jun 16 13:44:19 CEST 2009 - ug@suse.de + +- cloning striped LVM fixed (bnc#513509) + +------------------------------------------------------------------- Tue Jun 16 13:40:02 CEST 2009 - ug@suse.de - striping added to schema file (bnc#513449) Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartPlan.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartPlan.ycp?rev=57575&r1=57574&r2=57575&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartPlan.ycp (original) +++ branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartPlan.ycp Tue Jun 16 14:10:04 2009 @@ -438,6 +438,10 @@ { new_pe["lv_name"] = pe["name"]:""; new_pe["size"] = sformat("%1", pe["size_k"]:0*1024); + if( haskey( pe, "stripes" ) ) { + new_pe["stripes"] = pe["stripes"]:0; + new_pe["stripesize"] = pe["stripesize"]:4; + } } if (haskey(pe,"used_by_type") && pe["used_by_type"]:`nothing == `UB_MD) { Modified: branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartition.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartition.ycp?rev=57575&r1=57574&r2=57575&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartition.ycp (original) +++ branches/tmp/SLE-11-SP1-Stash/autoinstallation/src/modules/AutoinstPartition.ycp Tue Jun 16 14:10:04 2009 @@ -42,6 +42,8 @@ "mountby" : `device, "resize" : false, "lv_name" : "", + "stripes" : 1, + "stripesize" : 4, "lvm_group" : "", "raid_name" : "", "raid_type" : "", @@ -209,6 +211,12 @@ newPart = set( newPart, "size", part["size"]:"" ); newPart = set( newPart, "lv_name", part["lv_name"]:"" ); newPart = set( newPart, "lvm_group", part["lvm_group"]:"" ); + newPart = set( newPart, "stripes", part["stripes"]:1 ); + newPart = set( newPart, "stripesize", part["stripesize"]:4 ); + if( part["stripes"]:1 == 1 ) { + newPart = remove( newPart, "stripes" ); + newPart = remove( newPart, "stripesize" ); + } /* partition_id enforcement */ if( haskey( part, "lvm_group" ) ){ newPart = set( newPart, "partition_id", 142 ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org