From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 4 08:20:18 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B6DF16A41F for ; Sun, 4 Jun 2006 08:20:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E08943D4C for ; Sun, 4 Jun 2006 08:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k548KHDZ002905 for ; Sun, 4 Jun 2006 08:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k548KHEO002904; Sun, 4 Jun 2006 08:20:17 GMT (envelope-from gnats) Resent-Date: Sun, 4 Jun 2006 08:20:17 GMT Resent-Message-Id: <200606040820.k548KHEO002904@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hisamitsu Kikushima Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE0FC16A41F for ; Sun, 4 Jun 2006 08:19:25 +0000 (UTC) (envelope-from hisa32@PPPa962.tokyo-ip.dti.ne.jp) Received: from PPPa962.tokyo-ip.dti.ne.jp (PPPa962.tokyo-ip.dti.ne.jp [210.159.215.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2381C43D45 for ; Sun, 4 Jun 2006 08:19:24 +0000 (GMT) (envelope-from hisa32@PPPa962.tokyo-ip.dti.ne.jp) Received: from PPPa962.tokyo-ip.dti.ne.jp (localhost [127.0.0.1]) by PPPa962.tokyo-ip.dti.ne.jp (8.13.6/8.13.6) with ESMTP id k548HxiV001399 for ; Sun, 4 Jun 2006 17:19:24 +0900 (JST) (envelope-from hisa32@PPPa962.tokyo-ip.dti.ne.jp) Received: (from hisa32@localhost) by PPPa2468.tokyo-ip.dti.ne.jp (8.13.6/8.13.6/Submit) id k51GoqWa078083; Fri, 2 Jun 2006 01:50:52 +0900 (JST) (envelope-from hisa32) Message-Id: <200606011650.k51GoqWa078083@PPPa2468.tokyo-ip.dti.ne.jp> Date: Fri, 2 Jun 2006 01:50:52 +0900 (JST) From: Hisamitsu Kikushima To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/98478: [PATCH]For big size of file of cd9660 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hisamitsu Kikushima List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2006 08:20:18 -0000 >Number: 98478 >Category: kern >Synopsis: [PATCH]For big size of file of cd9660 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 04 08:20:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Hisamitsu Kikushima >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD PPPa2468.tokyo-ip.dti.ne.jp 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Sun May 21 09:16:54 JST 2006 root@PPPa338.tokyo-ip.dti.ne.jp:/usr/obj/usr/src/sys/AKNL i386 >Description: had the file of a big size (2G byte over) can read. It is not division that tests everything though the problem doesn't occur at present in my environment. I greement of cd9660 to the standard is not investigated. However, I thought that there is especially no problem because it is only reading. I changed to the source of 6.1 release. >How-To-Repeat: >Fix: --- isofs-64bit.diff begins here --- diff -crN src/sys/isofs/cd9660/cd9660_node.h src-edit/sys/isofs/cd9660/cd9660_node.h *** src/sys/isofs/cd9660/cd9660_node.h Wed Mar 16 17:09:52 2005 --- src-edit/sys/isofs/cd9660/cd9660_node.h Sun May 21 10:37:33 2006 *************** *** 42,48 **** * lookup on a 32-bit machine. If you are porting to a 64-bit * architecture, you should make doff_t the same as off_t. */ ! #define doff_t long typedef struct { struct timespec iso_atime; /* time of last access */ --- 42,49 ---- * lookup on a 32-bit machine. If you are porting to a 64-bit * architecture, you should make doff_t the same as off_t. */ ! typedef long long doff_t; ! typedef long long isize_t; typedef struct { struct timespec iso_atime; /* time of last access */ *************** *** 68,76 **** doff_t i_offset; /* offset of free space in directory */ ino_t i_ino; /* inode number of found directory */ ! long iso_extent; /* extent of file */ ! long i_size; ! long iso_start; /* actual start of data of file (may be different */ /* from iso_extent, if file has extended attributes) */ ISO_RRIP_INODE inode; }; --- 69,77 ---- doff_t i_offset; /* offset of free space in directory */ ino_t i_ino; /* inode number of found directory */ ! isize_t iso_extent; /* extent of file */ ! isize_t i_size; ! isize_t iso_start; /* actual start of data of file (may be different */ /* from iso_extent, if file has extended attributes) */ ISO_RRIP_INODE inode; }; --- isofs-64bit.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: