From: Miklos Szeredi Date: Mon, 13 Sep 2004 11:47:59 +0000 (+0000) Subject: fix X-Git-Tag: fuse_1_9~15 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1bf53eeac3529254345046627bd99f12145a1e11;p=qemu-gpiodev%2Flibfuse.git fix --- diff --git a/ChangeLog b/ChangeLog index fe8eb6b..a159b32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-09-13 Miklos Szeredi + + * Allow "large_read" option for 2.6 kernels but warn of deprecation + 2004-09-09 Miklos Szeredi * Fix bug in case two FORGETs for the same node are executed in diff --git a/kernel/inode.c b/kernel/inode.c index 894d031..3c43f97 100644 --- a/kernel/inode.c +++ b/kernel/inode.c @@ -173,9 +173,7 @@ enum { opt_fd, opt_default_permissions, opt_allow_other, opt_kernel_cache, -#ifndef KERNEL_2_6 opt_large_read, -#endif opt_direct_io, opt_max_read, opt_err }; @@ -187,9 +185,7 @@ static match_table_t tokens = { {opt_default_permissions, "default_permissions"}, {opt_allow_other, "allow_other"}, {opt_kernel_cache, "kernel_cache"}, -#ifndef KERNEL_2_6 {opt_large_read, "large_read"}, -#endif {opt_direct_io, "direct_io"}, {opt_max_read, "max_read=%u" }, {opt_err, NULL} @@ -241,11 +237,19 @@ static int parse_fuse_opt(char *opt, struct fuse_mount_data *d) d->flags |= FUSE_KERNEL_CACHE; break; -#ifndef KERNEL_2_6 case opt_large_read: +#ifndef KERNEL_2_6 d->flags |= FUSE_LARGE_READ; - break; +#else + { + static int warned = 0; + if (!warned) { + printk("fuse: large_read option is deprecated for 2.6 kernels\n"); + warned = 1; + } + } #endif + break; case opt_direct_io: d->flags |= FUSE_DIRECT_IO;