As per the documentation of the statfs() hook, some statvfs members are

ignored. So we must not use them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-03-20 16:34:23 +00:00
parent 8d0f474ca1
commit 41464387bd
@@ -327,14 +327,13 @@ FUSEVolume::ReadFSInfo(fs_info* info)
if (fuseError != 0)
return from_fuse_error(fuseError);
info->flags = ((st.f_fsid & ST_RDONLY) != 0 ? B_FS_IS_READONLY : 0)
| B_FS_IS_PERSISTENT; // assume the FS is persistent
info->flags = B_FS_IS_PERSISTENT; // assume the FS is persistent
info->block_size = st.f_bsize;
info->io_size = 64 * 1024; // some value
info->total_blocks = st.f_blocks;
info->free_blocks = st.f_bfree;
info->total_nodes = st.f_files;
info->free_nodes = st.f_favail;
info->free_nodes = 100; // st.f_favail is ignored by statfs()
info->volume_name[0] = '\0'; // no way to get the name (if any)
return B_OK;