Pascal Terjan
2009-Apr-24 16:59 UTC
[syslinux] [PATCH 1/2] Support iso images over 2GB in isohybrid
"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
Geert Stappers
2009-May-01 12:43 UTC
[syslinux] [PATCH 1/2] Support iso images over 2GB in isohybrid
Op 20090424 om 18:59 schreef Pascal Terjan:> "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";Euh, I can't find the above patch in Syslinux git, nor I can't find a mail follow-up. That could be my failure, but i think a reminder would harm ...
Apparently Analagous Threads
- [Fwd: IPAPPEND on http://syslinux.zytor.com/faq.php#config]
- isohybrid and ISO images whose size is not a multiple of 2048 bytes vs. VirtualBox
- isohybrid has 2 variants
- isohybrid and ISO images whose size is not a multiple of 2048 bytes vs. VirtualBox
- [PATCH 2/2] Preserve MBR id in isohybrid