Mailinglist Archive: yast-commit (62 mails)

< Previous Next >
[yast-commit] r62504 - /trunk/storage/storage/src/modules/Storage.ycp
  • From: aschnell@xxxxxxxxxxxxxxxxx
  • Date: Fri, 24 Sep 2010 10:14:37 -0000
  • Message-id: <20100924101437.7C786322E1@xxxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Sep 24 12:14:36 2010
New Revision: 62504

URL: http://svn.opensuse.org/viewcvs/yast?rev=62504&view=rev
Log:
- add md spare devices to target-map

Modified:
trunk/storage/storage/src/modules/Storage.ycp

Modified: trunk/storage/storage/src/modules/Storage.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=62504&r1=62503&r2=62504&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Fri Sep 24 12:14:36 2010
@@ -1500,9 +1500,12 @@
y2warning( "disk \"%1\" ret:%2", c["device"]:"", ret );

list<string> ls =
splitstring(LibStorage::MdPartCoInfo::swig_devices_get(infos), " ");
- y2milestone( "ls=%1", ls );
c["devices"] = ls;

+ ls = splitstring(LibStorage::MdPartCoInfo::swig_spares_get(infos), " ");
+ if (!isempty(ls))
+ c["spares"] = ls;
+
integer t = LibStorage::MdPartCoInfo::swig_type_get(infos);
c["raid_type"] = substring(sformat("%1", toSymbol(conv_mdtype, t)), 1);
if( HasRaidParity( c["raid_type"]:"" ))
@@ -1601,8 +1604,14 @@
}
string d = LibStorage::MdInfo::swig_sb_ver_get(info);
p["sb_ver"] = d;
- list<string> ls = splitstring(
LibStorage::MdInfo::swig_devices_get(info), " " );
+
+ list<string> ls =
splitstring(LibStorage::MdInfo::swig_devices_get(info), " ");
p["devices"] = ls;
+
+ ls = splitstring(LibStorage::MdInfo::swig_spares_get(info), " ");
+ if (!isempty(ls))
+ p["spares"] = ls;
+
c["partitions"] = add( c["partitions"]:[], p );
});
}

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

< Previous Next >
This Thread
  • No further messages