libc: vfs_plugin - initialize fstatfs members

Issue #1873
This commit is contained in:
Alexander Boettcher 2016-06-15 18:39:11 +02:00 committed by Christian Helmuth
parent c26f91ea00
commit db1d6568fb

View File

@ -37,6 +37,7 @@
/* libc-internal includes */
#include <libc_mem_alloc.h>
#include "libc_errno.h"
static Vfs::Vfs_handle *vfs_handle(Libc::File_descriptor *fd)
@ -351,8 +352,13 @@ int Libc::Vfs_plugin::fstat(Libc::File_descriptor *fd, struct stat *buf)
}
int Libc::Vfs_plugin::fstatfs(Libc::File_descriptor *, struct statfs *buf)
int Libc::Vfs_plugin::fstatfs(Libc::File_descriptor *fd, struct statfs *buf)
{
if (!fd || !buf)
return Libc::Errno(EFAULT);
Genode::memset(buf, 0, sizeof(*buf));
buf->f_flags = MNT_UNION;
return 0;
}