Author: aschnell Date: Thu Feb 12 12:16:27 2009 New Revision: 55460 URL: http://svn.opensuse.org/viewcvs/yast?rev=55460&view=rev Log: - keep bios_id in functions that update target-map (bnc #472476) 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=55460&r1=55459&r2=55460&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Thu Feb 12 12:16:27 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Feb 12 12:06:48 CET 2009 - aschnell@suse.de + +- keep bios_id in functions that update target-map (bnc #472476) + +------------------------------------------------------------------- Sun Feb 08 20:52:18 CET 2009 - aschnell@suse.de - fixed path for xfs_growfs (bnc #473717) Modified: trunk/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=55460&r1=55459&r2=55460&view=diff ============================================================================== --- trunk/storage/storage/src/modules/Storage.ycp (original) +++ trunk/storage/storage/src/modules/Storage.ycp Thu Feb 12 12:16:27 2009 @@ -1846,6 +1846,11 @@ integer count=0; +boolean IsDiskType(symbol t) +{ + return contains([ `CT_DISK, `CT_DMRAID, `CT_DMMULTIPATH ], t); +} + /** * Updates target map * @@ -1863,7 +1868,7 @@ c = find( map c, conts, ``(c["device"]:""==dev) ); if( c==nil ) rem_keys = add( rem_keys, dev ); - else if( c["type"]:`CT_UNKNONW==`CT_DISK ) + else if (IsDiskType(c["type"]:`CT_UNKNOWN)) { tg[dev] = toDiskMap( tg[dev]:$[], getContainerInfo( c ) ); } @@ -1902,7 +1907,7 @@ if( haskey( tg, dev ) ) tg = remove( tg, dev ); } - else if( c["type"]:`CT_UNKNONW==`CT_DISK ) + else if (IsDiskType(c["type"]:`CT_UNKNOWN)) { tg[dev] = toDiskMap( tg[dev]:$[], getContainerInfo( c ) ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org