Improve logic to recognize dmraid devices

This commit is contained in:
Curtis Gedak 2009-09-30 16:16:27 -06:00
parent d63c97ef42
commit 78c3174694
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ bool DMRaid::is_dmraid_device( const Glib::ustring & dev_path )
if ( is_dmraid_supported() )
{
for ( unsigned int k=0; k < dmraid_devices .size(); k++ )
if ( dev_path == (DEV_MAP_PATH + dmraid_devices[k]) )
if ( dev_path .find( dmraid_devices[k] ) != Glib::ustring::npos )
device_found = true ;
}