Author: fehr Date: Wed Jun 20 17:51:29 2007 New Revision: 38932 URL: http://svn.opensuse.org/viewcvs/yast?rev=38932&view=rev Log: prevent warning for known dm table types Modified: trunk/storage/libstorage/src/Dm.cc trunk/storage/libstorage/src/Dm.h Modified: trunk/storage/libstorage/src/Dm.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Dm.cc?rev=... ============================================================================== --- trunk/storage/libstorage/src/Dm.cc (original) +++ trunk/storage/libstorage/src/Dm.cc Wed Jun 20 17:51:29 2007 @@ -128,7 +128,9 @@ } else { - y2warning( "unknown target type "%s"", target.c_str() ); + if( find( known_types.begin(), known_types.end(), target ) == + known_types.end() ) + y2warning( "unknown target type "%s"", target.c_str() ); extractNthWord( 1, line ) >> le; y2mil( "le:" << le ); le /= 2; @@ -597,4 +599,6 @@ bool Dm::active = false; unsigned Dm::dm_major = 0; +static const char* elem[] = { "crypt" }; +list<string> Dm::known_types( elem, elem+lengthof(elem) ); Modified: trunk/storage/libstorage/src/Dm.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Dm.h?rev=3... ============================================================================== --- trunk/storage/libstorage/src/Dm.h (original) +++ trunk/storage/libstorage/src/Dm.h Wed Jun 20 17:51:29 2007 @@ -76,6 +76,7 @@ std::map<string,unsigned long> pe_map; static bool active; static unsigned dm_major; + static std::list<string> known_types; mutable storage::DmInfo info; }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org