aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2009-07-02 12:26:36 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2009-07-02 12:26:36 +0000
commit24b35c3d97ffdbf0a1f8e8b4e94ed892343603a6 (patch)
tree0ebcdf18f18a07ab444c4707f8091b615fd23171 /include/fuse_common.h
parent5bd3ba41e55e8c52e04d730d1e8a924b23b21591 (diff)
downloadlibfuse-24b35c3d97ffdbf0a1f8e8b4e94ed892343603a6.tar.gz
* The context is extended with a 'umask' field. The umask is sent
for mknod, mkdir and create requests by linux kernel version 2.6.31 or later, otherwise the umask is set to zero. Also introduce a new feature flag: FUSE_CAP_DONT_MASK. If the kernel supports this feature, then this flag will be set in conn->capable in the ->init() method. If the filesystem sets this flag in in conn->want, then the create modes will not be masked. * Add low level interfaces for lookup cache and attribute invalidation. This feature is available in linux kernels 2.6.31 or later. Patch by John Muir * Kernel interface version is now 7.12
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index ba341b3..291d1b7 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -88,12 +88,14 @@ struct fuse_file_info {
* FUSE_CAP_ATOMIC_O_TRUNC: filesystem handles the O_TRUNC open flag
* FUSE_CAP_EXPORT_SUPPORT: filesystem handles lookups of "." and ".."
* FUSE_CAP_BIG_WRITES: filesystem can handle write size larger than 4kB
+ * FUSE_CAP_DONT_MASK: don't apply umask to file mode on create operations
*/
#define FUSE_CAP_ASYNC_READ (1 << 0)
#define FUSE_CAP_POSIX_LOCKS (1 << 1)
#define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3)
#define FUSE_CAP_EXPORT_SUPPORT (1 << 4)
#define FUSE_CAP_BIG_WRITES (1 << 5)
+#define FUSE_CAP_DONT_MASK (1 << 6)
/**
* Ioctl flags