From 18e75e4cb186b5d247caea5c9aa21b69e4914c50 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 19 Feb 2004 14:23:27 +0000 Subject: statfs fixes --- kernel/inode.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'kernel/inode.c') diff --git a/kernel/inode.c b/kernel/inode.c index 257b41d..9ab0dc3 100644 --- a/kernel/inode.c +++ b/kernel/inode.c @@ -79,15 +79,14 @@ static void fuse_put_super(struct super_block *sb) static void convert_fuse_statfs(struct kstatfs *stbuf, struct fuse_kstatfs *attr) { stbuf->f_type = FUSE_SUPER_MAGIC; - stbuf->f_bsize = attr->block_size; + stbuf->f_bsize = attr->bsize; stbuf->f_blocks = attr->blocks; - stbuf->f_bfree = stbuf->f_bavail = attr->blocks_free; + stbuf->f_bfree = attr->bfree; + stbuf->f_bavail = attr->bavail; stbuf->f_files = attr->files; - stbuf->f_ffree = attr->files_free; - /* Is this field necessary? Most filesystems ignore it... - stbuf->f_fsid.val[0] = (FUSE_SUPER_MAGIC>>16)&0xffff; - stbuf->f_fsid.val[1] = FUSE_SUPER_MAGIC &0xffff; */ + stbuf->f_ffree = attr->ffree; stbuf->f_namelen = attr->namelen; + /* fsid is left zero */ } static int fuse_statfs(struct super_block *sb, struct kstatfs *buf) -- cgit v1.2.3