summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-06 09:26:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-06 09:26:42 +0000
commit9171dde54ad3c0b4590a7bf730854c09dcc38d19 (patch)
tree90a08ee8820a7ae980bd3e5db8810165162368c4 /perl-install/raid.pm
parent9bd6a9ea4f28b8b45a17fa8995547c179aecdebf (diff)
downloaddrakx-9171dde54ad3c0b4590a7bf730854c09dcc38d19.tar
drakx-9171dde54ad3c0b4590a7bf730854c09dcc38d19.tar.gz
drakx-9171dde54ad3c0b4590a7bf730854c09dcc38d19.tar.bz2
drakx-9171dde54ad3c0b4590a7bf730854c09dcc38d19.tar.xz
drakx-9171dde54ad3c0b4590a7bf730854c09dcc38d19.zip
fix typo
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm7
1 files 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;
}