Author: mpatelcz Date: Fri Oct 30 12:45:45 2009 New Revision: 59254 URL: http://svn.opensuse.org/viewcvs/yast?rev=59254&view=rev Log: Added support for partitionable raid without container - metadata is set properly. Modified: branches/tmp/mpatelcz/SP1-md/libstorage/src/MdPartCo.cc Modified: branches/tmp/mpatelcz/SP1-md/libstorage/src/MdPartCo.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mpatelcz/SP1-md/libstorage/src/MdPartCo.cc?rev=59254&r1=59253&r2=59254&view=diff ============================================================================== --- branches/tmp/mpatelcz/SP1-md/libstorage/src/MdPartCo.cc (original) +++ branches/tmp/mpatelcz/SP1-md/libstorage/src/MdPartCo.cc Fri Oct 30 12:45:45 2009 @@ -1578,22 +1578,29 @@ } else { - // Container + // this is the Container } } else { - // No external. + // No external metadata. + // Possibly this is raid with persistent metadata and no container. } } void MdPartCo::setMetaData() { - sb_ver.clear(); if( parent_container.empty () ) { getParent(); } + if( parent_container.empty() ) + { + // No parent container. + sb_ver = md_metadata; + return; + } + string path = sysfs_path + parent_container + "/md/" + md_props[METADATA]; string val; @@ -1653,6 +1660,11 @@ list<string>::const_iterator it2; getParent(); + if( parent_container.empty() ) + { + spare.clear(); + return; + } getSlaves(parent_container,parent_devs); for( it1 = parent_devs.begin(); it1 != parent_devs.end(); it1++ ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org