summaryrefslogtreecommitdiff
path: root/package/fuse24/patches/113-DCACHE_BUG.patch
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-14 11:36:19 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-14 11:36:19 +0000
commit71013384a4dec10ea58f8263b1f763480a0da546 (patch)
tree05c25a74e481943792a1eff1d0df71b277629ef8 /package/fuse24/patches/113-DCACHE_BUG.patch
parentc8d5b891102e391100e140cc69022ea79e2f42ec (diff)
[fuse24] Some fixes for fuse24.
Because sshfs expects character device to be /dev/fuse instead of /dev/misc/fuse, sshfs fails. This patch creates fuse device at /dev/fuse instead, also for compatibility the postinstall script (only executed when manually installed per opkg) creates /dev/misc/fuse added the dcache enabled kernel message to fuse24 Closes #5333 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16447 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/fuse24/patches/113-DCACHE_BUG.patch')
-rw-r--r--package/fuse24/patches/113-DCACHE_BUG.patch30
1 files changed, 20 insertions, 10 deletions
diff --git a/package/fuse24/patches/113-DCACHE_BUG.patch b/package/fuse24/patches/113-DCACHE_BUG.patch
index fdfbfef511..da0d27cd2f 100644
--- a/package/fuse24/patches/113-DCACHE_BUG.patch
+++ b/package/fuse24/patches/113-DCACHE_BUG.patch
@@ -1,7 +1,6 @@
-diff -ruN fuse-2.5.3.orig/kernel/dev.c fuse-2.5.3/kernel/dev.c
---- fuse-2.5.3.orig/kernel/dev.c 2006-02-02 19:04:52.000000000 +0200
-+++ fuse-2.5.3/kernel/dev.c 2008-10-23 10:27:53.000000000 +0300
-@@ -512,6 +512,9 @@
+--- a/kernel/dev.c
++++ b/kernel/dev.c
+@@ -512,6 +512,9 @@ static int fuse_copy_fill(struct fuse_co
{
unsigned long offset;
int err;
@@ -11,7 +10,7 @@ diff -ruN fuse-2.5.3.orig/kernel/dev.c fuse-2.5.3/kernel/dev.c
unlock_request(cs->req);
fuse_copy_finish(cs);
-@@ -523,14 +526,22 @@
+@@ -523,14 +526,22 @@ static int fuse_copy_fill(struct fuse_co
cs->nr_segs --;
}
down_read(&current->mm->mmap_sem);
@@ -34,7 +33,7 @@ diff -ruN fuse-2.5.3.orig/kernel/dev.c fuse-2.5.3/kernel/dev.c
cs->buf = cs->mapaddr + offset;
cs->len = min(PAGE_SIZE - offset, cs->seglen);
cs->seglen -= cs->len;
-@@ -545,6 +556,11 @@
+@@ -545,6 +556,11 @@ static inline int fuse_copy_do(struct fu
{
unsigned ncpy = min(*size, cs->len);
if (val) {
@@ -46,9 +45,8 @@ diff -ruN fuse-2.5.3.orig/kernel/dev.c fuse-2.5.3/kernel/dev.c
if (cs->write)
memcpy(cs->buf, *val, ncpy);
else
-diff -ruN fuse-2.5.3.orig/kernel/fuse_i.h fuse-2.5.3/kernel/fuse_i.h
---- fuse-2.5.3.orig/kernel/fuse_i.h 2006-02-02 19:04:52.000000000 +0200
-+++ fuse-2.5.3/kernel/fuse_i.h 2008-10-22 18:03:50.000000000 +0300
+--- a/kernel/fuse_i.h
++++ b/kernel/fuse_i.h
@@ -45,6 +45,10 @@
# endif
#endif
@@ -60,4 +58,16 @@ diff -ruN fuse-2.5.3.orig/kernel/fuse_i.h fuse-2.5.3/kernel/fuse_i.h
#include "config.h"
#ifndef KERNEL_2_6
# include <linux/config.h>
-
+--- a/kernel/inode.c
++++ b/kernel/inode.c
+@@ -739,6 +739,10 @@ static int __init fuse_init(void)
+ printk("fuse distribution version: %s\n", FUSE_VERSION);
+ #endif
+
++#ifdef DCACHE_BUG
++printk("fuse init: DCACHE_BUG enabled\n");
++#endif
++
+ spin_lock_init(&fuse_lock);
+ res = fuse_fs_init();
+ if (res)