protect every fuse call by mutexes to allow mounting without -s option

This commit is contained in:
josch
2014-12-29 22:47:52 +01:00
parent 02e2eec1d4
commit 90dc1c2927
4 changed files with 270 additions and 4 deletions

View File

@@ -22,6 +22,8 @@
#include <fuse/fuse.h>
#include <stddef.h>
#include <sys/types.h>
#include <pthread.h>
#include "../mfapi/mfconn.h"
#include "hashtbl.h"
#include "../utils/stringv.h"
@@ -37,6 +39,7 @@ struct mediafirefs_context_private {
folder_tree *tree;
time_t last_status_check;
time_t interval_status_check;
pthread_mutex_t mutex;
char *configfile;
char *dircache;
char *filecache;