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 <[email protected]> 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@DATA > Filesystem 1K-blocks Used Avail > Capacity Mounted on > /dev/serno/S3EWNCAHC00357M-1.s1e@DATA 20357120 19002752 1354368 > 93% /build > > > df -k /dev/serno/S3EWNCAHC00357M-1.s1e@DATA > Filesystem 1K-blocks Used Avail > Capacity Mounted on > /dev/serno/S3EWNCAHC00357M-1.s1e@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 >
