aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2007-06-22 20:41:26 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2007-06-22 20:41:26 +0000
commit37fb19c74ffed25e2dbb0ec3f84c560ff69e5fad (patch)
treefff8e719cfaa650e1641276f648c92cbc8a78338 /include
parent782d77fbf710b6dd072ae205239ec4af68cde3e6 (diff)
downloadandroid_external_fuse-37fb19c74ffed25e2dbb0ec3f84c560ff69e5fad.tar.gz
android_external_fuse-37fb19c74ffed25e2dbb0ec3f84c560ff69e5fad.tar.bz2
android_external_fuse-37fb19c74ffed25e2dbb0ec3f84c560ff69e5fad.zip
lib: fix locking when loading a filesystem module
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 19b38b3..dc0975a 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -97,9 +97,9 @@ struct fuse_operations {
/** Create a file node
*
- * If the filesystem doesn't define a create() operation, mknod()
- * will be called for creation of all non-directory, non-symlink
- * nodes.
+ * This is called for creation of all non-directory, non-symlink
+ * nodes. If the filesystem defines a create() method, then for
+ * regular files that will be called instead.
*/
int (*mknod) (const char *, mode_t, dev_t);
@@ -722,7 +722,7 @@ void fuse_register_module(struct fuse_module *mod);
#define FUSE_REGISTER_MODULE(name_, factory_) \
static __attribute__((constructor)) void name_ ## _register(void) \
{ \
- static struct fuse_module mod = { .name = #name_, .factory = factory_ }; \
+ static struct fuse_module mod = { #name_, factory_, NULL, NULL, 0 }; \
fuse_register_module(&mod); \
}