Skip to content
Snippets Groups Projects
Marvin Scholz's avatar
Marvin Scholz authored
While Darwin implements fstatvfs, the statvfs structures f_flag
field is only defined to contain two flags, ST_RDONLY and ST_NOSUID.
So the check for MNT_LOCAL would always be false, reporting all files
as non-local.

To mitigate that, on Darwin we can just use fstatfs and check
statfs.f_flags for MNT_LOCAL.

(cherry picked from commit 132ef662)
Signed-off-by: default avatarMarvin Scholz <epirat07@gmail.com>
d4dd3372
Name Last commit Last update