From owner-freebsd-bugs Thu Apr 18 1:20:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E5BD837B41B for ; Thu, 18 Apr 2002 01:20:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3I8K5f21966; Thu, 18 Apr 2002 01:20:05 -0700 (PDT) (envelope-from gnats) Date: Thu, 18 Apr 2002 01:20:05 -0700 (PDT) Message-Id: <200204180820.g3I8K5f21966@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: misc/37161: ext2 linux file system, error handling large files Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/37161; it has been noted by GNATS. From: Bruce Evans To: Ariel Florio Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/37161: ext2 linux file system, error handling large files Date: Thu, 18 Apr 2002 18:20:30 +1000 (EST) On Tue, 16 Apr 2002, Ariel Florio wrote: > >Description: > I've got a ext2 file system with a 30Gb tar file, I need untar this file but the system cut the operation in the first 2,9Gb aprox. > The tar file is being untared on FBSD File System on JBOD Mylex DAC960. > I tried to copy the tar file ( cp ) and the same problem is obtained, the operation cuts in the 10% aprox. I have planned to fix this for years but haven't done anything. read()s on ext2fs filesystems don't work for offsets larger than 2G, but the usual maxfilesize check is ifdefed out at the beginning of ext2_read(), so such reads blunder on for longer than they should instead of doing the usual (wrong) error handling very early (read() should return EOF, not EFBIG). Similarly in ext2 in ext2_write(), except blundering on may damage the filesystm and the usual error handling is correct. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message