aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_mt.c
diff options
context:
space:
mode:
authortherealneworld@gmail.com <therealneworld@gmail.com>2011-06-02 14:27:02 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2011-06-02 14:27:02 +0200
commit94c2b63955271d039c62e7c966aa82c9565d28ec (patch)
treea47133690e8d1a5aca9351dd8803e2e5fc4c5dc3 /lib/fuse_mt.c
parent4a9f6ab4805d805ac3b437c89d11ae365a0370f3 (diff)
downloadlibfuse-94c2b63955271d039c62e7c966aa82c9565d28ec.tar.gz
add "remember" option
This works similar to "noforget" except that eventually the node will be allowed to expire from the cache.
Diffstat (limited to 'lib/fuse_mt.c')
-rw-r--r--lib/fuse_mt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/fuse_mt.c b/lib/fuse_mt.c
index 95c3a5c..f6dbe71 100644
--- a/lib/fuse_mt.c
+++ b/lib/fuse_mt.c
@@ -110,7 +110,13 @@ int fuse_loop_mt(struct fuse *f)
if (f == NULL)
return -1;
- return fuse_session_loop_mt(fuse_get_session(f));
+ int res = fuse_start_cleanup_thread(f);
+ if (res)
+ return -1;
+
+ res = fuse_session_loop_mt(fuse_get_session(f));
+ fuse_stop_cleanup_thread(f);
+ return res;
}
FUSE_SYMVER(".symver fuse_loop_mt_proc,__fuse_loop_mt@");