Author: ug Date: Tue Jun 16 14:10:48 2009 New Revision: 57576 URL: http://svn.opensuse.org/viewcvs/yast?rev=57576&view=rev Log: cloning striped LVM fixed (bnc#513509) Modified: trunk/autoinstallation/package/autoyast2.changes trunk/autoinstallation/src/modules/AutoinstPartPlan.ycp trunk/autoinstallation/src/modules/AutoinstPartition.ycp Modified: trunk/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=57576&r1=57575&r2=57576&view=diff ============================================================================== --- trunk/autoinstallation/package/autoyast2.changes (original) +++ trunk/autoinstallation/package/autoyast2.changes Tue Jun 16 14:10:48 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Jun 16 14:10:29 CEST 2009 - ug@suse.de + +- cloning striped LVM fixed + +------------------------------------------------------------------- Tue Jun 16 10:16:39 CEST 2009 - ug@suse.de - striping added to schema file Modified: trunk/autoinstallation/src/modules/AutoinstPartPlan.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/modules/AutoinstPartPlan.ycp?rev=57576&r1=57575&r2=57576&view=diff ============================================================================== --- trunk/autoinstallation/src/modules/AutoinstPartPlan.ycp (original) +++ trunk/autoinstallation/src/modules/AutoinstPartPlan.ycp Tue Jun 16 14:10:48 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: trunk/autoinstallation/src/modules/AutoinstPartition.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/modules/AutoinstPartition.ycp?rev=57576&r1=57575&r2=57576&view=diff ============================================================================== --- trunk/autoinstallation/src/modules/AutoinstPartition.ycp (original) +++ trunk/autoinstallation/src/modules/AutoinstPartition.ycp Tue Jun 16 14:10:48 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