diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-09 09:02:47 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-09 09:02:47 +0000 |
commit | 1d3ac921d66022bb6e19a96dce95472cc31f0987 (patch) | |
tree | 4da18678cee71134f6cec6004f0b41afe6d25145 /perl-install/partition_table_raw.pm | |
parent | db4013c2a40eaeb3752cc69623037e4bb274693b (diff) | |
download | drakx-backup-do-not-use-1d3ac921d66022bb6e19a96dce95472cc31f0987.tar drakx-backup-do-not-use-1d3ac921d66022bb6e19a96dce95472cc31f0987.tar.gz drakx-backup-do-not-use-1d3ac921d66022bb6e19a96dce95472cc31f0987.tar.bz2 drakx-backup-do-not-use-1d3ac921d66022bb6e19a96dce95472cc31f0987.tar.xz drakx-backup-do-not-use-1d3ac921d66022bb6e19a96dce95472cc31f0987.zip |
no_comment
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r-- | perl-install/partition_table_raw.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm index ff54ef765..c97a8a094 100644 --- a/perl-install/partition_table_raw.pm +++ b/perl-install/partition_table_raw.pm @@ -26,7 +26,7 @@ sub compute_CHS($$) { sub CHS2rawCHS($$$) { my ($c, $h, $s) = @_; - $c = min($c, 1023); # no way to have a #cylinder >= 1024 + $c = min($c, 1023); #- no way to have a #cylinder >= 1024 ($c & 0xff, $h, $s | ($c >> 2 & 0xc0)); } @@ -73,7 +73,7 @@ sub read($$) { \%h; } (1..$nb_primary); - # check magic number + #- check magic number sysread F, $tmp, length $magic or die "error reading magic number"; $tmp eq $magic or die "bad magic number"; @@ -92,7 +92,7 @@ sub write($$$) { foreach (@$pt) { compute_CHS($hd, $_); local $_->{start} = $_->{local_start} || 0; - $_->{active} ||= 0; $_->{type} ||= 0; $_->{size} ||= 0; # for no warning + $_->{active} ||= 0; $_->{type} ||= 0; $_->{size} ||= 0; #- for no warning syswrite F, pack($format, @$_{@fields}), psizeof($format) or return 0; } syswrite F, $magic, length $magic or return 0; |