Mageia Bugzilla – Attachment 4317 Details for
Bug 11139
Disks member of ddf array (Fake raid) are displayed in diskdrake
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
detect ddf members
0001-Correctly-detect-ddf-array-members.patch (text/plain), 1.27 KB, created by
Jean-Philippe Braun
on 2013-09-03 16:05:32 CEST
(
hide
)
Description:
detect ddf members
Filename:
MIME Type:
Creator:
Jean-Philippe Braun
Created:
2013-09-03 16:05:32 CEST
Size:
1.27 KB
patch
obsolete
>From 139bd9814225db0e09ea212046cb596f28131980 Mon Sep 17 00:00:00 2001 >From: Jean-Philippe Braun <eon@patapon.info> >Date: Tue, 3 Sep 2013 15:51:57 +0200 >Subject: [PATCH] Correctly detect ddf array members > >Since MGA1 disks part of a ddf array aren't properly detected. Because of that >they are displayed in diskdrake and let the user make partitions on them >instead of the ddf array. > >This commit fix the detection and the disks are not showed in diskdrake. >--- > perl-install/fs/dmraid.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/perl-install/fs/dmraid.pm b/perl-install/fs/dmraid.pm >index eae1fdd..09ecbaa 100644 >--- a/perl-install/fs/dmraid.pm >+++ b/perl-install/fs/dmraid.pm >@@ -43,14 +43,15 @@ sub _raid_devices_raw() { > # get the real vg names, needed for ddf1, and safer than begins_with for raid10 > log::l("_raid_devices_raw"); > my %vgs; >- my %pv2vg = map { >+ my %pv2vg; >+ map { > chomp(); > log::l("got: $_"); > my %l; @l{qw(name size stride level status subsets devs spares)} = split(':'); > $vgs{$l{name}} = 1 if defined $l{spares}; > if (/freeing device "(.*)", path "(.*)"/ && defined $vgs{$1}) { > log::l("$2 => $1"); >- { $2 => $1 } >+ $pv2vg{$2} = $1; > } > } call_dmraid(qw(-d -s -c -c)); > map { >-- >1.8.4 >
From 139bd9814225db0e09ea212046cb596f28131980 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Braun <eon@patapon.info> Date: Tue, 3 Sep 2013 15:51:57 +0200 Subject: [PATCH] Correctly detect ddf array members Since MGA1 disks part of a ddf array aren't properly detected. Because of that they are displayed in diskdrake and let the user make partitions on them instead of the ddf array. This commit fix the detection and the disks are not showed in diskdrake. --- perl-install/fs/dmraid.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-install/fs/dmraid.pm b/perl-install/fs/dmraid.pm index eae1fdd..09ecbaa 100644 --- a/perl-install/fs/dmraid.pm +++ b/perl-install/fs/dmraid.pm @@ -43,14 +43,15 @@ sub _raid_devices_raw() { # get the real vg names, needed for ddf1, and safer than begins_with for raid10 log::l("_raid_devices_raw"); my %vgs; - my %pv2vg = map { + my %pv2vg; + map { chomp(); log::l("got: $_"); my %l; @l{qw(name size stride level status subsets devs spares)} = split(':'); $vgs{$l{name}} = 1 if defined $l{spares}; if (/freeing device "(.*)", path "(.*)"/ && defined $vgs{$1}) { log::l("$2 => $1"); - { $2 => $1 } + $pv2vg{$2} = $1; } } call_dmraid(qw(-d -s -c -c)); map { -- 1.8.4
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11139
: 4317