macos/openbsd: fs type name
This commit is contained in:
parent
ed267ba555
commit
68f5c3fcbf
|
@ -145,7 +145,7 @@ filesystem_info_get(const char *path)
|
||||||
fs->mount = strdup(mountpoint);
|
fs->mount = strdup(mountpoint);
|
||||||
fs->path = strdup(path);
|
fs->path = strdup(path);
|
||||||
fs->type = stats.f_type;
|
fs->type = stats.f_type;
|
||||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
#if !defined(__linux__)
|
||||||
fs->type_name = strdup(stats.f_fstypename);
|
fs->type_name = strdup(stats.f_fstypename);
|
||||||
#endif
|
#endif
|
||||||
fs->usage.total = stats.f_bsize * stats.f_blocks;
|
fs->usage.total = stats.f_bsize * stats.f_blocks;
|
||||||
|
|
Loading…
Reference in New Issue