fix
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 13 Sep 2004 11:47:59 +0000 (11:47 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Mon, 13 Sep 2004 11:47:59 +0000 (11:47 +0000)
ChangeLog
kernel/inode.c

index fe8eb6bdc091403e6f91a29605d93a9d4b1b5290..a159b329bbfe11ac6a022545e35045ac6d5ea270 100644 (file)
--- 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
index 894d031b6edbefe8516d9af2ff553ece98201a4c..3c43f97b0e6d2d1b34dfa0d102442d111e00a14b 100644 (file)
@@ -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;