Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2002 14:22:47 GMT
From:      woerner@mediabase-gmbh.de
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/43471: `ls -l` shows wrong size for big files (>10GB)
Message-ID:  <200209291423.g8TEMlnK031425@mailx.mediabase-gmbh.de>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 29 07:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209291423.g8TEMlnK031425>