[yast-commit] r60560 - in /trunk/storage: package/yast2-storage.changes storage/src/modules/Storage.ycp
Author: aschnell Date: Wed Jan 27 15:42:12 2010 New Revision: 60560 URL: http://svn.opensuse.org/viewcvs/yast?rev=60560&view=rev Log: - allow to set driver for IMSM without callback (bnc #574270) Modified: trunk/storage/package/yast2-storage.changes 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=60560&r1=60559&r2=60560&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Wed Jan 27 15:42:12 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Jan 27 15:09:27 CET 2010 - aschnell@suse.de + +- allow to set driver for IMSM without callback (bnc #574270) + +------------------------------------------------------------------- Thu Jan 21 17:28:48 CET 2010 - aschnell@suse.de - implemented moving of newly created partitions (see bnc #541034) Modified: trunk/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=60560&r1=60559&r2=60560&view=diff ============================================================================== --- trunk/storage/storage/src/modules/Storage.ycp (original) +++ trunk/storage/storage/src/modules/Storage.ycp Wed Jan 27 15:42:12 2010 @@ -176,6 +176,11 @@ "right_asymmetric" : LibStorage::RIGHT_ASYMMETRIC(), "right_symmetric" : LibStorage::RIGHT_SYMMETRIC() ]; +map<symbol, integer> conv_imsm_driver = + $[ `IMSM_UNDECIDED : LibStorage::IMSM_UNDECIDED(), + `IMSM_DMRAID : LibStorage::IMSM_DMRAID(), + `IMSM_MDADM : LibStorage::IMSM_MDADM() ]; + map DiskMapVersion = $[]; map DiskMap = $[]; map type_order = $[ `CT_DISK : 0, `CT_MD : 1, `CT_MDPART : 2, `CT_DMRAID : 3, @@ -284,6 +289,14 @@ } +symbol imsm_driver = `IMSM_UNDECIDED; + +global void SetImsmDriver(symbol val) +{ + imsm_driver = val; +} + + list<map> getContainers(); global boolean InitLibstorage(boolean readonly) @@ -309,6 +322,8 @@ LibStorage::StorageInterface::setEfiBoot(sint, Partitions::EfiBoot()); + LibStorage::StorageInterface::setImsmDriver(sint, conv_imsm_driver[imsm_driver]:LibStorage::IMSM_UNDECIDED()); + conts = getContainers(); y2milestone("InitLibstorage conts:%1", conts); FileSystems::InitSlib(sint); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org