Subject: kern/25935: cd9660: size reported wrong for 2gig file
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dillo@netbsd.org>
List: netbsd-bugs
Date: 06/15/2004 17:16:02
>Number:         25935
>Category:       kern
>Synopsis:       cd9660: size reported wrong for 2gig file
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 15 15:17:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dieter Baron
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
	
	
System: NetBSD wintermute 2.0_BETA NetBSD 2.0_BETA (WINTERMUTE) #3: Sat Jun  5 00:54:40 MEST 2004  root@wintermute:/usr/src/sys/arch/i386/compile/WINTERMUTE i386
Architecture: i386
Machine: i386
>Description:
  The size of files on cd9660 file system gets sign extended to 64bit
(or so it seems).  A file that is 2gb long (2147483648 (0x80000000)
bytes) gets reported as being 18446744071562067968 (0xFFFFFFFF80000000)
bytes long.
>How-To-Repeat:
	mkdir cd
	cd cd
	dd if=/dev/zero of=2gig bs=1m count=2048
	cd ..
	mkisofs -v -o iso cd
	vndconfig vnd0 iso
	mount -t cd9660 /dev/vnd0d /mnt
	ll /mnt
>Fix:
	non known.
>Release-Note:
>Audit-Trail:
>Unformatted: