[PATCH 1/2] uapi/fuse.h: Add message definitions for O_TMPFILE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the fuse_tmpfile_in struct and the FUSE_TMPFILE opcode. Like other
operations that create new entries, the server should reply to a
FUSE_TMPFILE message with a fuse_entry_out for the newly created entry.

Signed-off-by: Chirantan Ekbote <chirantan@xxxxxxxxxxxx>
---
 include/uapi/linux/fuse.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h
index 7233502ea991f..db7bcf87c3977 100644
--- a/include/uapi/linux/fuse.h
+++ b/include/uapi/linux/fuse.h
@@ -175,6 +175,7 @@
  *
  *  7.32
  *  - add flags to fuse_attr, add FUSE_ATTR_SUBMOUNT, add FUSE_SUBMOUNTS
+ *  - add FUSE_TMPFILE and fuse_tmpfile_in
  */
 
 #ifndef _LINUX_FUSE_H
@@ -479,6 +480,7 @@ enum fuse_opcode {
 	FUSE_COPY_FILE_RANGE	= 47,
 	FUSE_SETUPMAPPING	= 48,
 	FUSE_REMOVEMAPPING	= 49,
+	FUSE_TMPFILE		= 50,
 
 	/* CUSE specific operations */
 	CUSE_INIT		= 4096,
@@ -602,6 +604,11 @@ struct fuse_create_in {
 	uint32_t	padding;
 };
 
+struct fuse_tmpfile_in {
+	uint32_t mode;
+	uint32_t umask;
+};
+
 struct fuse_open_out {
 	uint64_t	fh;
 	uint32_t	open_flags;
-- 
2.29.2.222.g5d2a92d10f8-goog




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux