summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-08-22 01:10:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-08-22 01:10:13 +0000
commit1a996ceb744f490f0183099640e7a1eb3ad039c1 (patch)
tree7e599599dc2cd1601dc1f86b7db223ceebc562a9 /perl-install/partition_table.pm
parente2df2b17c50af038bbfe15f5b6dd9a21c532ae5b (diff)
downloaddrakx-backup-do-not-use-1a996ceb744f490f0183099640e7a1eb3ad039c1.tar
drakx-backup-do-not-use-1a996ceb744f490f0183099640e7a1eb3ad039c1.tar.gz
drakx-backup-do-not-use-1a996ceb744f490f0183099640e7a1eb3ad039c1.tar.bz2
drakx-backup-do-not-use-1a996ceb744f490f0183099640e7a1eb3ad039c1.tar.xz
drakx-backup-do-not-use-1a996ceb744f490f0183099640e7a1eb3ad039c1.zip
no_comment
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 547c1b8e1..feecaa33f 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -630,8 +630,12 @@ sub next_start($$) {
$next ? $next->{start} : $hd->{totalsectors};
}
-
-sub raw_add($$) {
+sub can_raw_add {
+ my ($hd) = @_;
+ $_->{size} || $_->{type} or return foreach @{$hd->{primary}{raw}};
+ 1;
+}
+sub raw_add {
my ($raw, $part) = @_;
foreach (@$raw) {