From owner-freebsd-stable@freebsd.org Wed May 10 16:36:13 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C429CD664BF for ; Wed, 10 May 2017 16:36:13 +0000 (UTC) (envelope-from DutchDaemon@FreeBSD.org) Received: from offshore.bengrimm.net (offshore.bengrimm.net [84.22.108.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "offshore.bengrimm.net", Issuer "offshore.bengrimm.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7581D1E9D for ; Wed, 10 May 2017 16:36:12 +0000 (UTC) (envelope-from DutchDaemon@FreeBSD.org) X-H2O-MailScanner-Watermark: 1495038958.67954@5vu06V3o+Vm+3o/BGHa+XA X-Offshore-MailScanner-From: dutchdaemon@freebsd.org X-Offshore-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-1, required 4, autolearn=not spam, ALL_TRUSTED -1.00) X-Offshore-MailScanner: Found to be clean X-Offshore-MailScanner-ID: v4AGZwnB004837 X-Offshore-MailScanner-Information: Please contact the ISP for more information Received: from [10.190.10.116] (D57C4972.static.ziggozakelijk.nl [213.124.73.114]) (authenticated bits=0) by offshore.bengrimm.net (8.15.2/8.15.2) with ESMTPSA id v4AGZwnB004837 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 10 May 2017 18:35:58 +0200 (CEST) (envelope-from DutchDaemon@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.10.3 offshore.bengrimm.net v4AGZwnB004837 X-Authentication-Warning: offshore.bengrimm.net: Host D57C4972.static.ziggozakelijk.nl [213.124.73.114] claimed to be [10.190.10.116] Subject: Re: Missing units in df -h output To: freebsd-stable@freebsd.org References: <59133BDC.8080509@quip.cz> From: DutchDaemon - FreeBSD Forums Administrator Organization: The FreeBSD Forums Message-ID: Date: Wed, 10 May 2017 18:35:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <59133BDC.8080509@quip.cz> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5WF9AqhH8sFMthVx0aAPBQFsI9RaFWdTx" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (offshore.bengrimm.net [84.22.108.242]); Wed, 10 May 2017 18:35:58 +0200 (CEST) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 16:36:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5WF9AqhH8sFMthVx0aAPBQFsI9RaFWdTx Content-Type: multipart/mixed; boundary="xoD1O8kBq33iF5lE4eOCm8vQxpmm486Jq"; protected-headers="v1" From: DutchDaemon - FreeBSD Forums Administrator To: freebsd-stable@freebsd.org Message-ID: Subject: Re: Missing units in df -h output References: <59133BDC.8080509@quip.cz> In-Reply-To: <59133BDC.8080509@quip.cz> --xoD1O8kBq33iF5lE4eOCm8vQxpmm486Jq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: nl On 10-5-2017 18:12, Miroslav Lachman wrote: > Today I noticed missing units (G) in the output of 'df -h' command if > size is exactly 1000G > > This is on FreeBSD 10.3-RELEASE-p18 amd64 GENERIC > > /# df -h /vol0/remote_backup/rico > Filesystem Size Used Avail Capacity=20 > Mounted on > tank0/vol0/remote_backup/rico 1.4T 1000 443G 69% > /vol0/remote_backup/rico > > The same without -h > > # df /vol0/remote_backup/rico > Filesystem 1K-blocks Used Avail Capacity > Mounted on > tank0/vol0/remote_backup/rico 1513215636 1048349068 464866568 69% > /vol0/remote_backup/rico > > I don't know if the G suffix is stripped by formatting to columns / > size of field is limited to 4 characters if '-h' is used or anything > else. > > The FS is ZFS if this matters. > > Is this known issue? Should I file PR for this? Looks a bit off-by-one-ish. Perhaps 'G' was limited to 999, and 'T' starts at 1000+? Nice catch, if so. --xoD1O8kBq33iF5lE4eOCm8vQxpmm486Jq-- --5WF9AqhH8sFMthVx0aAPBQFsI9RaFWdTx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZE0FpAAoJEA9a9BMWOKcxVYMH/AqQhsYPgL0eH2IK+OIVlYbU u7rtU5luH6db5ld57Nrp/t33Wmdm7EsjxYfqorTIW5rXLgaocG9qJl0NPw1TuOLh laJdNj8H/xLKasNcsyPS21RJQUgAbTN9M2L04YvHaDfC9JwUL/k8C+UNsnTOa97Q FEignRcYa1nvRbumzpJi/YxrAutsR3JFl12gV0puCiHlGL9fwcQLBw1NF3Q2KhPY AYmFlsIJXgzYoimA2y0eMEMZG8yddGaUcyReTqquIvAizz+EOhHvSVuy1qzUR41R cptB/sdUYaoCHgEYnTvizJoynW0WhhUoTsbmKO1m4u08LSRqRilnLFR24bA+tdA= =l1G2 -----END PGP SIGNATURE----- --5WF9AqhH8sFMthVx0aAPBQFsI9RaFWdTx--