kern/91488: [isofs] [patch] cd9660 filesystem cannot handle files larger than 2GB

Jeff Anton antonfb at hesiod.org
Mon Feb 20 13:50:09 PST 2006


The following reply was made to PR kern/91488; it has been noted by GNATS.

From: Jeff Anton <antonfb at hesiod.org>
To: bug-followup at FreeBSD.org, freebsd-cd9660-bug at 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.


More information about the freebsd-bugs mailing list