Re: acd0: FAILURE - READ_BIG MEDIUM ERROR

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Fri, 24 Sep 2004 14:54:42 +0900
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
_at__at_ -181,7 +181,7 _at__at_
 	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
Received on Fri Sep 24 2004 - 03:54:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:13 UTC