[yast-commit] r51921 - in /trunk/storage: libstorage/src/Md.cc package/yast2-storage.changes
Author: aschnell Date: Tue Oct 7 16:01:10 2008 New Revision: 51921 URL: http://svn.opensuse.org/viewcvs/yast?rev=51921&view=rev Log: - fixed parsing of /proc/mdstat (bnc #433022) Modified: trunk/storage/libstorage/src/Md.cc trunk/storage/package/yast2-storage.changes Modified: trunk/storage/libstorage/src/Md.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Md.cc?rev=51921&r1=51920&r2=51921&view=diff ============================================================================== --- trunk/storage/libstorage/src/Md.cc (original) +++ trunk/storage/libstorage/src/Md.cc Tue Oct 7 16:01:10 2008 @@ -75,6 +75,11 @@ if( (pos=line.find_first_not_of( app_ws ))!=string::npos && pos!=0 ) line.erase( 0, pos ); if( (pos=line.find_first_of( app_ws ))!=string::npos ) + { + if (line.substr(0, pos) == "active") + line.erase(0, pos); + } + if( (pos=line.find_first_of( app_ws ))!=string::npos ) { tmp = line.substr( 0, pos ); if( tmp=="(read-only)" || tmp=="(auto-read-only)" || tmp=="inactive" ) Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=51921&r1=51920&r2=51921&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Tue Oct 7 16:01:10 2008 @@ -2,6 +2,7 @@ Tue Oct 07 11:23:25 CEST 2008 - aschnell@suse.de - changed messages (bnc #429467) +- fixed parsing of /proc/mdstat (bnc #433022) - 2.17.35 ------------------------------------------------------------------- -- 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