Based on this code in fs/vfs/main.cc
...
static int
statfs_to_statvfs(struct statvfs *dst, struct statfs *src)
{
dst->f_bsize = src->f_bsize;
dst->f_frsize = src->f_bsize;
dst->f_blocks = src->f_blocks;
dst->f_bfree = src->f_bfree;
dst->f_bavail = src->f_bavail;
dst->f_files = src->f_files;
dst->f_
I think that if you ask this question in general (in any Unix-like OS),
f_bsize is not the correct block size, but I believe (but didn't verify)
that in OSv is turns out to be correct. Linux provides a field f_frsize but
it seems (?) OSv does not impelement it (but I didn't check this carefully).
Currently httpserver returns disk usage information in blocks like this
snippet demonstrates:
static void fill_dfstat(DFStat& dfstat, const osv::mount_desc& mount, const
struct statfs& st) {
dfstat.filesystem = mount.special;
dfstat.mount = mount.path;
dfstat.btotal = st.f_blocks;
dfstat.bfree =