diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-04-09 09:28:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-04-09 09:28:24 +0000 |
commit | f9a642df536f4779ed37f2a090e31987f7e7d7ce (patch) | |
tree | 5a06e76f6566e6621939cd8f7f9c50368c64ff48 /perl-install/partition_table_gpt.pm | |
parent | 21821ebbb28f714e4f12d71eff0357e498fdb111 (diff) | |
download | drakx-backup-do-not-use-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar drakx-backup-do-not-use-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar.gz drakx-backup-do-not-use-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar.bz2 drakx-backup-do-not-use-f9a642df536f4779ed37f2a090e31987f7e7d7ce.tar.xz drakx-backup-do-not-use-f9a642df536f4779ed37f2a090e31987f7e7d7ce.zip |
nicer debug "bag magic" error message (thanks to Brian J. Murrell)
Diffstat (limited to 'perl-install/partition_table_gpt.pm')
-rw-r--r-- | perl-install/partition_table_gpt.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table_gpt.pm b/perl-install/partition_table_gpt.pm index fe70009b0..d4c873851 100644 --- a/perl-install/partition_table_gpt.pm +++ b/perl-install/partition_table_gpt.pm @@ -106,7 +106,7 @@ sub read_header { sysread $F, $tmp, psizeof($main_format) or die "error while reading partition table in sector $sector"; my %info; @info{@$main_fields} = unpack $main_format, $tmp; - $info{magic} eq $magic or die "bad magic number"; + $info{magic} eq $magic or die "bad magic number on disk $hd->{device}"; $info{myLBA} == $sector or die "myLBA is not the same"; $info{headerSize} == psizeof($main_format) or die "bad partition table header size"; $info{partitionEntrySize} == psizeof($partitionEntry_format) or die "bad partitionEntrySize"; |