Author: aschnell Date: Mon Nov 9 11:45:58 2009 New Revision: 59413 URL: http://svn.opensuse.org/viewcvs/yast?rev=59413&view=rev Log: - copy more info to target-map for MdPartCo Modified: branches/tmp/mpatelcz/SP1-md/storage/src/modules/Storage.ycp Modified: branches/tmp/mpatelcz/SP1-md/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mpatelcz/SP1-md/storage/sr... ============================================================================== --- branches/tmp/mpatelcz/SP1-md/storage/src/modules/Storage.ycp (original) +++ branches/tmp/mpatelcz/SP1-md/storage/src/modules/Storage.ycp Mon Nov 9 11:45:58 2009 @@ -1687,6 +1687,23 @@ } else y2warning( "disk "%1" ret:%2", c["device"]:"", ret ); + + integer t = LibStorage::MdPartCoInfo::swig_level_get(infos); + c["raid_type"] = substring(sformat("%1", toSymbol(conv_mdtype, t)), 1); + if (c["raid_type"]:"" == "raid5") + { + t = LibStorage::MdPartCoInfo::swig_parity_get(infos); + symbol pt = toSymbol(conv_mdparity, t); + if (pt != `par_none) + c["parity_algorithm"] = substring(sformat("%1", pt), 1); + } + t = LibStorage::MdPartCoInfo::swig_chunk_get(infos); + if (t > 0) + { + c["chunk_size"] = t; + } + c["sb_ver"] = LibStorage::MdPartCoInfo::swig_sb_ver_get(infos); + c["partitions"] = []; ret = LibStorage::StorageInterface::getMdPartInfo(sint, d, pinfos); foreach(any info, pinfos, { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org