[gparted] Fix detection of multiple SW RAID (md) devices (#668486)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Fix detection of multiple SW RAID (md) devices (#668486)
- Date: Mon, 23 Jan 2012 20:13:41 +0000 (UTC)
commit 2522e480f7da9921ff93528e4cb9f6d85d639c48
Author: Rogier Goossens <goossens rogier gmail com>
Date: Mon Jan 23 13:10:22 2012 -0700
Fix detection of multiple SW RAID (md) devices (#668486)
Closes Bug #668486 - GParted fails to detect multiple md (SWRaid)
devices
src/SWRaid.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/SWRaid.cc b/src/SWRaid.cc
index 29c9b40..98fde1d 100644
--- a/src/SWRaid.cc
+++ b/src/SWRaid.cc
@@ -71,7 +71,7 @@ void SWRaid::load_swraid_cache()
Utils::tokenize( output, temp_arr, "\n" ) ;
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 )
swraid_devices .push_back( temp ) ;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]