df(1) showing different statistics for different users

Michael Neumann mneumann at ntecs.de
Mon Aug 20 10:15:14 PDT 2018


Hi,

When I run "df" as root it shows a capacity of 93%, while as
unpriviledged user, it shows 98%:

	# df -k /dev/serno/S3EWNCAHC00357M-1.s1e at DATA
	Filesystem                            1K-blocks     Used   Avail Capacity  Mounted on
    /dev/serno/S3EWNCAHC00357M-1.s1e at DATA  20357120 19002752 1354368    93%    /build

    > df -k /dev/serno/S3EWNCAHC00357M-1.s1e at DATA
    Filesystem                            1K-blocks     Used  Avail Capacity  Mounted on
    /dev/serno/S3EWNCAHC00357M-1.s1e at DATA  19339264 19002752 336512    98%    /build

I did run "hammer2 cleanup" before, as I got a lot of these errors on
the console:

	hammer2_alloc_indirect: error 00000020 No Space on Device
	xop_strategy_write: error 32 loff=0000000000610000

Before running hammer2 cleanup, I checked disk usage with "df",
and it showed me 97% capacity, so I was very confused why these
messages occured.

Is it a feature to show less free capacity when logged in as
unpriviledged user?

Regards,

  Michael


More information about the Users mailing list