Subject: Re: disklabeling a 1.7 TB disk
To: None <current-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: current-users
Date: 03/02/2004 04:01:20
--IpbVkmxF4tDyP/Kb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Jan Schaumann wrote:
> Now there just seems to be an issue with df(1). When reporting in
> 512-blocks, the total number is negative:
=20
> /dev/ld0g -1677515064 36263968 -1844651648 1% /anon-root
That's because it uses "signed long" instead of "uint64_t" as it should.
Just look for "long" and "%ld" in df.c and replace it by uint64_t
resp. "%"PRIu64 in format strings.
--=20
Christian
--IpbVkmxF4tDyP/Kb
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFAQ/kA0KQix3oyIMcRAuikAKCsOvUvJGN+KZoWkjx4bXs9Rl7AQQCgilkB
hI0iy8lSsALUvtlJkrRc6Cs=
=euU+
-----END PGP SIGNATURE-----
--IpbVkmxF4tDyP/Kb--