diff options
author | 2004-02-19 14:23:27 +0000 | |
---|---|---|
committer | 2004-02-19 14:23:27 +0000 | |
commit | 18e75e4cb186b5d247caea5c9aa21b69e4914c50 (patch) | |
tree | 71fdaa602c8c70ecf933a9ec4cd3e4d8156026e8 /kernel/inode.c | |
parent | fa39e90ea08e2d6f976deec8f12eda27a14e0813 (diff) |
statfs fixes
Diffstat (limited to 'kernel/inode.c')
-rw-r--r-- | kernel/inode.c | 11 |
1 files changed, 5 insertions, 6 deletions
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) |