From woerner@mediabase-gmbh.de  Sun Sep 29 07:23:40 2002
Return-Path: <woerner@mediabase-gmbh.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 07E7C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Sep 2002 07:23:40 -0700 (PDT)
Received: from mailx.mediabase-gmbh.de (pD9E9620A.dip.t-dialin.net [217.233.98.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A507C43E8A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Sep 2002 07:23:37 -0700 (PDT)
	(envelope-from woerner@mediabase-gmbh.de)
Received: from gaga (aw@localhost.local.mediabase-gmbh.de [127.0.0.1])
	by mailx.mediabase-gmbh.de (8.12.2/8.12.2) with SMTP id g8TEMlnK031425
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Sep 2002 14:23:08 GMT
Message-Id: <200209291423.g8TEMlnK031425@mailx.mediabase-gmbh.de>
Date: Sun, 29 Sep 2002 14:22:47 GMT
From: woerner@mediabase-gmbh.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: `ls -l` shows wrong size for big files (>10GB)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43471
>Category:       bin
>Synopsis:       `ls -l` shows wrong size for big files (>10GB)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 29 07:30:01 PDT 2002
>Closed-Date:    Fri Jul 23 12:03:24 GMT 2004
>Last-Modified:  Fri Jul 23 12:03:24 GMT 2004
>Originator:     Arne Woerner
>Release:        FreeBSD 5.0-CURRENT-20020917-JPSNAP i386
>Organization:
mediaBase Gmbh, MUC, BY, FRG
>Environment:
System: FreeBSD cyclops.local.mediabase-gmbh.de 5.0-CURRENT-20020917-JPSNAP Free
BSD 5.0-CURRENT-20020917-JPSNAP #0: Wed Sep 25 18:23:51 GMT 2002 aw@newark.local
.mediabase-gmbh.de:/usr/src/sys/i386/compile/RIDDICK i386
>Description:
        the file size provided by the long output format mode of /bin/ls
        is only 32-bit ==> 'real size' modulo 2^32 shows up in the output
        (at least in OpenBSD 3.1 and the FBSD source code looks alike)
>How-To-Repeat:
        dd if=/dev/zero of=gaga bs=1000000 count=10000
        ls -l gaga
        you will see 10000000000%(2^32) as file size
>Fix:
        should be easy because the system is already able to handle big
        files ==> /usr/include/... is ok
        only /usr/src/bin/ls needs some enhancement
        too busy to do it myself and my bug fixes are not so beloved anyway...
>Release-Note:
>Audit-Trail:

From: Arne Woerner <woerner@mediabase-gmbh.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/43471: `ls -l` shows wrong size for big files
Date: Sun, 29 Sep 2002 15:00:41 GMT

 Oops... :-)
 
 May be 10GB is not the best hint...
 `df -k` showed before I deleted the file
 	59231680 used blocks
 and after
 	38487696 used blocks
 (that is 20743984 KB less).
 
 `ls -l` showed a file size of
 	4045263471 bytes
 which is round about
 	3950452 KB
 which is not enough.
 
 But obviously may analysis was not correct (I just tested a 10^10
 Bytes file and `ls -l` was OK). But in fact the ls.h uses type int
 for file size...
 
 I will try a bigger file... ;-) Will be back tomorrow...

From: Arne Woerner <woerner@mediabase-gmbh.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/43471: `ls -l` shows wrong size for big files
Date: Tue, 1 Oct 2002 08:12:59 GMT

 I think the reason was, that I used an ext2fs and that
 OpenBSD did not support very big files on such file
 systems. :-(
 
 It does not look like a bug in LS(1) now for me... :)
 
 -Arne
State-Changed-From-To: open->closed 
State-Changed-By: le 
State-Changed-When: Fri Jul 23 12:03:02 GMT 2004 
State-Changed-Why:  
Submitter says this PR is not valid anymore. 

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