1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_inotify.dpatch by Youngjae Shin <yj99.shin@samsung.com>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: fix the removing inotify
9 diff -urN fuse-2.orig/lib/fuse.c fuse-2/lib/fuse.c
10 --- fuse-2.orig/lib/fuse.c 2010-02-10 09:35:29.000000000 +0900
11 +++ fuse-2/lib/fuse.c 2010-02-10 09:43:59.000000000 +0900
16 +#define FIX_INOTIFY_BROKEN
17 static void forget_node(struct fuse *f, fuse_ino_t nodeid, uint64_t nlookup)
23 assert(node->nlookup >= nlookup);
24 +#ifdef FIX_INOTIFY_BROKEN
25 + struct node *temp_node;
28 + for(i=0;i<f->id_table_size;i++) {
29 + temp_node = f->id_table[i];
31 + if(temp_node->parent == node)
33 + temp_node = temp_node->id_next;
37 node->nlookup -= nlookup;
43 +#ifdef FIX_INOTIFY_BROKEN
46 pthread_mutex_unlock(&f->lock);