df(1) showing different statistics for different users

Matthew Dillon dillon at backplane.com
Mon Aug 20 10:42:38 PDT 2018


Yes.  Root gets more headroom than non-root users, because system demons
tend to implode if they run out of disk space and we don't want regular
users to mess up root that way.

-Matt

On Mon, Aug 20, 2018 at 10:15 AM, Michael Neumann <mneumann at ntecs.de> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20180820/d9550308/attachment-0003.htm>


More information about the Users mailing list