Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2006 21:50:08 GMT
From:      Jeff Anton <antonfb@hesiod.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/91488: [isofs] [patch] cd9660 filesystem cannot handle files larger than 2GB
Message-ID:  <200602202150.k1KLo8EJ029231@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/91488; it has been noted by GNATS.

From: Jeff Anton <antonfb@hesiod.org>
To: bug-followup@FreeBSD.org, freebsd-cd9660-bug@z42.net
Cc:  
Subject: Re: kern/91488: [isofs] [patch] cd9660 filesystem cannot handle files
 larger than 2GB
Date: Mon, 20 Feb 2006 13:42:33 -0800

 The initial patch is not enough for the amd64 platform and any other
 platform where the long and unsigned long types have more bits than
 the int types.
 
 I also needed...
 
 --- cd9660_vfsops.c.org Thu Aug 18 04:32:06 2005
 +++ cd9660_vfsops.c     Mon Feb 20 13:32:54 2006
 @@ -756,7 +756,7 @@
         }
  
         ip->iso_extent = isonum_733(isodir->extent);
 -       ip->i_size = isonum_733(isodir->size);
 +       ip->i_size = (u_int32_t) isonum_733(isodir->size);
         ip->iso_start = isonum_711(isodir->ext_attr_length) + ip->iso_extent;
  
         /*
 
 I hope this gets into the main code path.  I'm going to have many files in the
 multi Gbyte size range (hence the 64 bit platform) for a long time to come.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602202150.k1KLo8EJ029231>