svn commit: r377746 - head/ports-mgmt/pkg
David Chisnall
theraven at FreeBSD.org
Mon Jan 26 09:25:24 UTC 2015
On 23 Jan 2015, at 16:33, Vsevolod Stakhov <vsevolod at freebsd.org> wrote:
>
> I'm personally happy to end the ambiguity between hard drive Terabytes
> and network Tebibytes...
A lot of HD manufacturers use one of the following two:
1KB = 1024 bytes
1MB = 1024 KB
1GB = 1000 MB
1TB = 1000 GB
Or
1KB = 1024 bytes
1MB = 1000 KB
1GB = 1000 MB
1TB = 1000 GB
Nothing that anyone sane does can make hard drive measurement units comprehensible.
Personally, one of the most confusing issues that I have with regard to units is that FreeBSD and OS X have a number of command-line tools that have a switch to toggle between binary and decimal prefixes, but the switch has the opposite meaning on the two. We really need to have a standard switch and/or environment variable for this that is consistent across everything.
I'd like to see that functionality be part of libxo, so that all utilities can just produce unformatted numbers of bytes and have libxo worry about the formatting when producing human-readable output and a raw byte number when producing machine-readable formats.
David
More information about the svn-ports-all
mailing list