Mailinglist Archive: yast-commit (459 mails)

< Previous Next >
[yast-commit] r60638 - /branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Storage.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Mon, 01 Feb 2010 14:21:59 -0000
  • Message-id: <E1NbxA7-0006lY-RQ@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Mon Feb 1 15:21:59 2010
New Revision: 60638

URL: http://svn.opensuse.org/viewcvs/yast?rev=60638&view=rev
Log:
- avoid reading udev links if no MdParts are found

Modified:
branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Storage.cc

Modified: branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Storage.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Storage.cc?rev=60638&r1=60637&r2=60638&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Storage.cc
(original)
+++ branches/SuSE-Code-11-SP1-Branch/storage/libstorage/src/Storage.cc Mon Feb
1 15:21:59 2010
@@ -447,7 +447,9 @@
{
list<string> l = MdPartCo::getMdRaids();
list<string> mdpartlist = MdPartCo::filterMdPartCo(l,ppart, instsys());
- //
+
+ if (!mdpartlist.empty())
+ {
map<string, list<string>> by_id;
getUdevMap("/dev/disk/by-id", by_id);
for( list<string>::const_iterator i = mdpartlist.begin();
@@ -463,6 +465,7 @@
addToList( v );
}
}
+ }
}

void Storage::detectMds()

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

< Previous Next >
This Thread
  • No further messages