diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2009-06-30 20:12:23 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2009-06-30 20:12:23 +0200 |
commit | e0a43ddcc08c34dbd666d93600fd23914505f4aa (patch) | |
tree | 103449845b1ffaf8f32ed98a1a543276227ec087 /fs/fuse/fuse_i.h | |
parent | 201fa69a2849536ef2912e8e971ec0b01c04eff4 (diff) | |
download | blackbird-op-linux-e0a43ddcc08c34dbd666d93600fd23914505f4aa.tar.gz blackbird-op-linux-e0a43ddcc08c34dbd666d93600fd23914505f4aa.zip |
fuse: allow umask processing in userspace
This patch lets filesystems handle masking the file mode on creation.
This is needed if filesystem is using ACLs.
- The CREATE, MKDIR and MKNOD requests are extended with a "umask"
parameter.
- A new FUSE_DONT_MASK flag is added to the INIT request/reply. With
this the filesystem may request that the create mode is not masked.
CC: Jean-Pierre André <jean-pierre.andre@wanadoo.fr>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index aaf2f9ff970e..ede4f77b2d6c 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -446,6 +446,9 @@ struct fuse_conn { /** Do multi-page cached writes */ unsigned big_writes:1; + /** Don't apply umask to creation modes */ + unsigned dont_mask:1; + /** The number of requests waiting for completion */ atomic_t num_waiting; |