From owner-svn-ports-all@FreeBSD.ORG Mon Jan 26 09:25:23 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D731C9BB; Mon, 26 Jan 2015 09:25:23 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9AC205E5; Mon, 26 Jan 2015 09:25:23 +0000 (UTC) Received: from [192.168.0.7] (cpc16-cmbg15-2-0-cust60.5-4.cable.virginm.net [86.5.162.61]) (authenticated bits=0) by theravensnest.org (8.15.1/8.14.9) with ESMTPSA id t0Q9PBFu086697 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Jan 2015 09:25:15 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: theravensnest.org: Host cpc16-cmbg15-2-0-cust60.5-4.cable.virginm.net [86.5.162.61] claimed to be [192.168.0.7] Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: svn commit: r377746 - head/ports-mgmt/pkg From: David Chisnall In-Reply-To: <54C277CA.8000609@FreeBSD.org> Date: Mon, 26 Jan 2015 09:25:06 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201501231557.t0NFvKFE047114@svn.freebsd.org> <20150123160458.GA68670@FreeBSD.org> <54C277CA.8000609@FreeBSD.org> To: Vsevolod Stakhov X-Mailer: Apple Mail (2.1993) Cc: svn-ports-head@freebsd.org, Alexey Dokuchaev , Baptiste Daroussin , svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2015 09:25:24 -0000 On 23 Jan 2015, at 16:33, Vsevolod Stakhov wrote: >=20 > 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 =3D 1024 bytes 1MB =3D 1024 KB 1GB =3D 1000 MB 1TB =3D 1000 GB Or 1KB =3D 1024 bytes 1MB =3D 1000 KB 1GB =3D 1000 MB 1TB =3D 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