]> wimlib.net Git - wimlib/blobdiff - src/dentry.h
Use FUSE multi-threaded mode for read-only mounts
[wimlib] / src / dentry.h
index 733cb2eea36ed5a074df72df2f8c135531b6eeed..d30cb15985632af4746431375f6f79e0a9a69516 100644 (file)
@@ -8,6 +8,10 @@
 #include "rbtree.h"
 #include <string.h>
 
+#ifdef WITH_FUSE
+#include <pthread.h>
+#endif
+
 struct stat;
 struct lookup_table;
 struct WIMStruct;
@@ -295,6 +299,11 @@ struct inode {
 
        /* Next alternate data stream ID to be assigned */
        u32 next_stream_id;
+
+       /* This mutex protects the inode's file descriptors table during
+        * read-only mounts.  Read-write mounts are still restricted to 1
+        * thread. */
+       pthread_mutex_t i_mutex;
 #endif
 };