aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fuse_lowlevel.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index e5c308c..3d398de 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -1302,6 +1302,29 @@ struct fuse_lowlevel_ops {
*/
void (*lseek) (fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
struct fuse_file_info *fi);
+
+
+ /**
+ * Create a tempfile
+ *
+ * Tempfile means an anonymous file. It can be made into a normal file later
+ * by using linkat or such.
+ *
+ * If this is answered with an error ENOSYS this is treated by the kernel as
+ * a permanent failure and it will disable the feature and not ask again.
+ *
+ * Valid replies:
+ * fuse_reply_create
+ * fuse_reply_err
+ *
+ * @param req request handle
+ * @param parent inode number of the parent directory
+ * @param mode file type and mode with which to create the new file
+ * @param fi file information
+ */
+ void (*tmpfile) (fuse_req_t req, fuse_ino_t parent,
+ mode_t mode, struct fuse_file_info *fi);
+
};
/**