Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 18:35:49 +0200
From:      DutchDaemon - FreeBSD Forums Administrator <DutchDaemon@FreeBSD.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: Missing units in df -h output
Message-ID:  <b8cacac3-d8eb-e569-675d-adc542290bb3@FreeBSD.org>
In-Reply-To: <59133BDC.8080509@quip.cz>
References:  <59133BDC.8080509@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <DutchDaemon@FreeBSD.org>
To: freebsd-stable@freebsd.org
Message-ID: <b8cacac3-d8eb-e569-675d-adc542290bb3@FreeBSD.org>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b8cacac3-d8eb-e569-675d-adc542290bb3>