[gparted] Improve logic to recognize dmraid devices
- From: Curtis Gedak <gedakc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gparted] Improve logic to recognize dmraid devices
- Date: Wed, 30 Sep 2009 23:18:45 +0000 (UTC)
commit 78c31746947b9fc76ffdbe98eb33c00f0582dbb3
Author: Curtis Gedak <gedakc gmail com>
Date: Wed Sep 30 16:16:27 2009 -0600
Improve logic to recognize dmraid devices
src/DMRaid.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/DMRaid.cc b/src/DMRaid.cc
index 6e54f6e..dc1bde7 100644
--- a/src/DMRaid.cc
+++ b/src/DMRaid.cc
@@ -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 ;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]