+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
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 };
{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}
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;