From nobody@FreeBSD.org  Tue Apr 16 15:15:01 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 16BE637B41D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Apr 2002 15:15:00 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3GMF0M62022;
	Tue, 16 Apr 2002 15:15:00 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204162215.g3GMF0M62022@freefall.freebsd.org>
Date: Tue, 16 Apr 2002 15:15:00 -0700 (PDT)
From: Ariel Florio <arielflorio@ciudad.com.ar>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ext2 linux file system, error handling large files
X-Send-Pr-Version: www-1.0

>Number:         37161
>Category:       kern
>Synopsis:       [ext2fs] ext2 linux file system, error handling large files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    emulation
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 16 15:20:01 PDT 2002
>Closed-Date:    Sun Jul 31 12:17:58 GMT 2005
>Last-Modified:  Sun Jul 31 12:17:58 GMT 2005
>Originator:     Ariel Florio
>Release:        4.5
>Organization:
>Environment:
>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.
>How-To-Repeat:
Trying untar the file, copy, list the file contents etc.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: Ariel Florio <arielflorio@ciudad.com.ar>
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
 
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Thu Feb 19 03:55:16 PST 2004 
State-Changed-Why:  
This is believed to be fixed in -current & is awaiting MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37161 
Responsible-Changed-From-To: freebsd-bugs->emulation 
Responsible-Changed-By: bms 
Responsible-Changed-When: Fri Jun 18 12:10:23 GMT 2004 
Responsible-Changed-Why:  
One for the emulation team 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37161 

From: Matteo Riondato <rionda@gufi.org>
To: freebsd-gnats-submit@freebsd.org
Cc: tjr@freebsd.org
Subject: Re: kern/37161: ext2 linux file system, error handling large files
Date: Tue, 12 Apr 2005 09:02:33 +0200

 This was fixed in RELENG_5 too, long time ago (Feb 2004).
 No fix in RELENG_4 yet and I don't know if it is possible to merge to
 that branch. If it's not, then this PR can be closed.
 Thank you.
 Best Regards
 -- 
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Sun Jul 31 12:17:40 GMT 2005 
State-Changed-Why:  
Fixed but won't be MFCed to RELENG_4 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37161 
>Unformatted:
