acd0: FAILURE - READ_BIG MEDIUM ERROR

Jun Kuriyama kuriyama at imgsrc.co.jp
Thu Sep 23 22:54:50 PDT 2004


At Fri, 17 Sep 2004 08:25:37 +0200,
Søren Schmidt wrote:
> > And, this DVD-R has a large file (3GB), and ls(1) (maybe stat(2))
> > issues an error like this:
> 
> Uhm , you cannot have file > 1G on a comliant isofs...

This patch solves my problem (can handle 3GB file).

Index: cd9660_vnops.c
===================================================================
RCS file: /home/ncvs/src/sys/isofs/cd9660/cd9660_vnops.c,v
retrieving revision 1.101
diff -u -r1.101 cd9660_vnops.c
--- cd9660_vnops.c	22 Sep 2004 18:18:26 -0000	1.101
+++ cd9660_vnops.c	24 Sep 2004 00:28:59 -0000
@@ -181,7 +181,7 @@
 	vap->va_ctime	= ip->inode.iso_ctime;
 	vap->va_rdev	= ip->inode.iso_rdev;
 
-	vap->va_size	= (u_quad_t) ip->i_size;
+	vap->va_size	= (u_quad_t)(unsigned long)ip->i_size;
 	if (ip->i_size == 0 && (vap->va_mode & S_IFMT) == S_IFLNK) {
 		struct vop_readlink_args rdlnk;
 		struct iovec aiov;


-- 
Jun Kuriyama <kuriyama at imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama at FreeBSD.org> // FreeBSD Project


More information about the freebsd-current mailing list