bin/127495: ls -lh display wrong filesize
Søren Klintrup
soren at klintrup.dk
Fri Sep 19 10:40:02 UTC 2008
>Number: 127495
>Category: bin
>Synopsis: ls -lh display wrong filesize
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 19 10:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Søren Klintrup
>Release: 6.3 and 7.0
>Organization:
>Environment:
FreeBSD localhost 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep 2 18:48:24 UTC 2008 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
$ ls -l test1
-rw-r--r-- 1 x y 1048559029 Sep 19 11:52 test1
$ ls -lh test1
-rw-r--r-- 1 x y 1000 Sep 19 11:52 test1
Filesize does not have to be exactly 1048559029 bytes, everything in that range seems to give the same output.
Tested and verified on 3 different systems:
7.0 amd64 using ufs (generic kernel from freebsd-update)
7.0 amd64 using zfs (custom kernel)
6.3 i386 using ufs (jail, custom kernel)
>How-To-Repeat:
You can use my testfile from http://soren.klintrup.dk/ls_display_testfile.bz2
or you can generate your own file by using the command:
dd if=/dev/zero of=ls_display_testfile bs=1000 count=1048564
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list