From 9171dde54ad3c0b4590a7bf730854c09dcc38d19 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Sep 2004 09:26:42 +0000 Subject: fix typo --- perl-install/raid.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/perl-install/raid.pm b/perl-install/raid.pm index f2b18d421..8b0750ed7 100644 --- a/perl-install/raid.pm +++ b/perl-install/raid.pm @@ -187,14 +187,15 @@ sub get_existing { my $md_part = new($raids, device => $md, level => $raw_part->{level}, disks => \@mdparts); - if (my $type = fs::type::type_subpart_from_magic($md_part)) { + my $type = fs::type::type_subpart_from_magic($md_part); + if ($type) { put_in_hash($md_part, $type); } else { fs::type::set_fs_type($md_part, 'ext3'); } - fs::type::set_isFormatted($md_part, to_bool($fs_type)); + fs::type::set_isFormatted($md_part, to_bool($type->{fs_type})); - log::l("RAID: found $md (raid $md_part->{level}) type $fs_type with parts $raw_part->{devices}"); + log::l("RAID: found $md (raid $md_part->{level}) type $type->{fs_type} with parts $raw_part->{devices}"); } $raids; } -- cgit v1.2.1