[Bug 224498] ls -lh dose not display properly around 1MB, 1GB, ...

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 21 10:36:57 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224498

            Bug ID: 224498
           Summary: ls -lh dose not display properly around 1MB, 1GB, ...
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ish at amail.plala.or.jp

ls -lh dose not display properly around 1MB, 1GB, ...

I tested on FreeBSD 11.1-RELEASE-p4 and 12-Current r326890 as follows.

% dd if=/dev/zero of=test-around-1mb bs=1023500 count=1
1+0 records in
1+0 records out
1023500 bytes transferred in 0.000443 secs (2307981987 bytes/sec)
% dd if=/dev/zero of=test-around-1gb bs=1023500k count=1
1+0 records in
1+0 records out
1048064000 bytes transferred in 0.416685 secs (2515240183 bytes/sec)
% ls -l test-around-1*
-rw-r--r--  1 ishizuka  wheel  1048064000 Dec 21 19:27 test-around-1gb
-rw-r--r--  1 ishizuka  wheel     1023500 Dec 21 19:27 test-around-1mb
% ls -lh test-around-1*
-rw-r--r--  1 ishizuka  wheel   1000 Dec 21 19:27 test-around-1gb
-rw-r--r--  1 ishizuka  wheel   1000 Dec 21 19:27 test-around-1mb

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list