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/swap.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/swap.pm')
-rw-r--r-- | perl-install/swap.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/swap.pm b/perl-install/swap.pm index 879794ca9..bf8f608ed 100644 --- a/perl-install/swap.pm +++ b/perl-install/swap.pm @@ -21,9 +21,9 @@ my $signature_page = "\0" x $pagesize; my $V0_MAX_PAGES = 8 * $pagesize - 10; my $V1_OLD_MAX_PAGES = int 0x7fffffff / $pagesize - 1; -my $V1_MAX_PAGES = $V1_OLD_MAX_PAGES; # (1 << 24) - 1; +my $V1_MAX_PAGES = $V1_OLD_MAX_PAGES; #- (1 << 24) - 1; my $MAX_BADPAGES = int ($pagesize - 1024 - 128 * $common::sizeof_int - 10) / $common::sizeof_int; -my $signature_format_v1 = "x1024 I I I I125"; # bootbits, version, last_page, nr_badpages, padding +my $signature_format_v1 = "x1024 I I I I125"; #- bootbits, version, last_page, nr_badpages, padding 1; @@ -52,7 +52,7 @@ sub check_blocks { vec($signature_page, $i, 1) = bool($last_read_ok) if $version == 0; } - # TODO: add interface + #- TODO: add interface $badpages and log::l("$badpages bad pages\n"); return $badpages; @@ -114,7 +114,7 @@ sub make($;$) { syswrite(F, substr($signature_page, $offset)) or die "unable to write signature page: $!"; - # A subsequent swapon() will fail if the signature is not actually on disk. (This is a kernel bug.) + #- A subsequent swapon() will fail if the signature is not actually on disk. (This is a kernel bug.) syscall_('fsync', fileno(F)) or die "fsync failed: $!"; close F; } |