[syslinux] [PATCH 1/2] Support iso images over 2GB in isohybrid
Pascal Terjan
pterjan at mandriva.com
Fri Apr 24 09:59:17 PDT 2009
"use integer" limits integers to 2^31-1 on 32 bits, which makes
imgsize to be -1 on DVD images
Signed-off-by: Pascal Terjan <pterjan at mandriva.com>
---
utils/isohybrid.in | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/utils/isohybrid.in b/utils/isohybrid.in
index 4671036..e98c59f 100644
--- a/utils/isohybrid.in
+++ b/utils/isohybrid.in
@@ -17,7 +17,6 @@
#
use bytes;
-use integer;
use Fcntl;
# Use this fake geometry (zipdrive-style...)
@@ -92,7 +91,7 @@ $cylsize = $h*$s*512;
$frac = $imgsize % $cylsize;
$padding = ($frac > 0) ? $cylsize - $frac : 0;
$imgsize += $padding;
-$c = $imgsize/$cylsize;
+$c = int($imgsize/$cylsize);
if ($c > 1024) {
print STDERR "Warning: more than 1024 cylinders ($c).\n";
print STDERR "Not all BIOSes will be able to boot this device.\n";
--
1.6.2.4
More information about the Syslinux
mailing list