Date: Fri, 19 Sep 2008 10:32:47 GMT From: Søren Klintrup <soren@klintrup.dk> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/127495: ls -lh display wrong filesize Message-ID: <200809191032.m8JAWlGW053459@www.freebsd.org> Resent-Message-ID: <200809191040.m8JAe1dC069425@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809191032.m8JAWlGW053459>