From: Miklos Szeredi Date: Fri, 6 Feb 2004 09:48:51 +0000 (+0000) Subject: fix X-Git-Tag: fuse_1_1_post1~15 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=377b2eadb3f66af4e3ab98fef44be0c436b5c171;p=qemu-gpiodev%2Flibfuse.git fix --- diff --git a/ChangeLog b/ChangeLog index 38bf17f..43ec053 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-02-06 Miklos Szeredi + + * Fixed writing >= 2G files + 2004-02-04 Miklos Szeredi * Released 1.1 diff --git a/kernel/inode.c b/kernel/inode.c index f5c3a97..d896965 100644 --- a/kernel/inode.c +++ b/kernel/inode.c @@ -193,10 +193,11 @@ static int fuse_read_super(struct super_block *sb, void *data, int silent) struct inode *root; struct fuse_mount_data *d = data; - sb->s_blocksize = PAGE_CACHE_SIZE; - sb->s_blocksize_bits = PAGE_CACHE_SHIFT; - sb->s_magic = FUSE_SUPER_MAGIC; - sb->s_op = &fuse_super_operations; + sb->s_blocksize = PAGE_CACHE_SIZE; + sb->s_blocksize_bits = PAGE_CACHE_SHIFT; + sb->s_magic = FUSE_SUPER_MAGIC; + sb->s_op = &fuse_super_operations; + sb->s_maxbytes = MAX_LFS_FILESIZE; #ifdef KERNEL_2_6 sb->s_export_op = &fuse_export_operations; #endif @@ -216,7 +217,7 @@ static int fuse_read_super(struct super_block *sb, void *data, int silent) spin_unlock(&fuse_lock); /* fc is needed in fuse_init_file_inode which could be called - from get_root_inode */ + from get_root_inode */ SB_FC(sb) = fc; root = get_root_inode(sb, d->rootmode); @@ -237,15 +238,15 @@ static struct super_block *fuse_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) { - return get_sb_nodev(fs_type, flags, raw_data, fuse_read_super); + return get_sb_nodev(fs_type, flags, raw_data, fuse_read_super); } static struct file_system_type fuse_fs_type = { - .owner = THIS_MODULE, - .name = "fuse", - .get_sb = fuse_get_sb, - .kill_sb = kill_anon_super, - .fs_flags = 0 + .owner = THIS_MODULE, + .name = "fuse", + .get_sb = fuse_get_sb, + .kill_sb = kill_anon_super, + .fs_flags = 0 }; #else static struct super_block *fuse_read_super_compat(struct super_block *sb,