From e34c133ec6053025124416a3861f9f4c4f7fd772 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Wed, 6 Feb 2013 19:13:00 +0000 Subject: Add write buffer for tar writes update fuse to 2.9.2 catch return from unlink so that we don't print error messages when things work Change-Id: I1115039a0fa5d9d73f78ef1abd79755d7ffd9d96 --- fuse/fuse_mt.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'fuse/fuse_mt.c') diff --git a/fuse/fuse_mt.c b/fuse/fuse_mt.c index 7f940006d..f6dbe71b2 100644 --- a/fuse/fuse_mt.c +++ b/fuse/fuse_mt.c @@ -24,8 +24,6 @@ struct procdata { void *data; }; -#ifdef __MULTI_THREAD - static void mt_session_proc(void *data, const char *buf, size_t len, struct fuse_chan *ch) { @@ -112,9 +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@"); - -#endif -- cgit v1.2.3