aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--kernel/inode.c16
2 files changed, 14 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index fe8eb6b..a159b32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-13 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Allow "large_read" option for 2.6 kernels but warn of deprecation
+
2004-09-09 Miklos Szeredi <miklos@szeredi.hu>
* 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;