You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version:
Linux, Mageia Cauldron x86_64
According to @bruvzg, also reproducible on macOS
Issue description:
Running Directory::get_space_left() seems to return garbage data, at least on x86_64.
The data does not correspond to the available disk space reported by df.
On macOS using vfs.f_frsize (fundamental file system block size) instead of vfs.f_bsize (file system block size) works.
Also, it might be better to use vfs.f_bavail (space available to user) instead of vfs.f_bfree (space available to system).
In case of macOS it will be smaller for the system volume, excluding APFS snapshots.
Godot version:
3.x (c0b3ad2)
master (3b380f4)
OS/device including version:
Linux, Mageia Cauldron x86_64
According to @bruvzg, also reproducible on macOS
Issue description:
Running
Directory::get_space_left()
seems to return garbage data, at least on x86_64.The data does not correspond to the available disk space reported by
df
.For example, with this script:
And this partition setup:
I get, on
master
and3.x
with x86_64 build:Earlier today I had:
I've been compiling the Rust compiler in the meantime which can explain the diff between the values for
/home
.With an i686 build, it seems better:
Steps to reproduce:
Directory.get_space_left()
on your system to what the system reportsMinimal reproduction project:
OS/user-dependent, but see above for a snippet.
The text was updated successfully, but these errors were encountered: