HDD free wrong?
sebastianelsner opened this issue · 3 comments
Hello,
I noticed the "hdd free" may not be correct. Please see the screenshot: "Afanasy Host info" on the left 22 GB vs. "df -h on the host on the right 13 GB"
The line must be here:
cgru/afanasy/src/render/res_linux.cpp
Line 299 in 0119c0e
The total hdd is correct (203 GB vs 204G) so there may be something wrong in the code above?!
Comparing several renders it seems to be off by around 10GB
Hello!
204 - 181 = 23, so Afanasy works correct, but seems missing something, that df -h
takes.
The difference seems to be the reserved block count for root. The reserved blocks allow system daemons to keep going even when the disk is full, while non-root processes will not be able to write to it.
So afanasy is overreporting the free space, which is kind of right, but also wrong since a rendering will never write to the root reserved space. I would aim at presenting the user available space in afanasy. I have a look at how to do that.