Fix detection of multiple SW RAID (md) devices (#668486)

Closes Bug #668486 - GParted fails to detect multiple md (SWRaid)
                     devices
This commit is contained in:
Rogier Goossens 2012-01-23 13:10:22 -07:00 committed by Curtis Gedak
parent c304afe994
commit 2522e480f7
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void SWRaid::load_swraid_cache()
Utils::tokenize( output, temp_arr, "\n" ) ; Utils::tokenize( output, temp_arr, "\n" ) ;
for ( unsigned int k = 0; k < temp_arr .size(); k++ ) for ( unsigned int k = 0; k < temp_arr .size(); k++ )
{ {
Glib::ustring temp = Utils::regexp_label( output, "^[^/]*(/dev/[^\t ]*)" ) ; Glib::ustring temp = Utils::regexp_label( temp_arr[k], "^[^/]*(/dev/[^\t ]*)" ) ;
if ( temp .size() > 0 ) if ( temp .size() > 0 )
swraid_devices .push_back( temp ) ; swraid_devices .push_back( temp ) ;
} }