From b0c52c59f710b4619949adfc359dabfca005fe0d Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 23 Aug 2005 15:39:43 +0000 Subject: fix --- include/fuse.h | 2 ++ include/fuse_lowlevel.h | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/fuse.h b/include/fuse.h index 4bb215e..6251158 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -311,6 +311,8 @@ struct fuse_operations { * Introduced in version 2.4 */ int (*access) (const char *, int); + + int (*create) (const char *, mode_t, struct fuse_file_info *); }; /** Extra context that may be needed by some filesystems diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index ffeb6f9..a8e3e3e 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -95,6 +95,8 @@ struct fuse_lowlevel_ops { fuse_ino_t newparent, const char *newname); void (*link) (fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent, const char *newname); + void (*create) (fuse_req_t req, fuse_ino_t parent, const char *name, + mode_t mode, struct fuse_file_info *fi); void (*open) (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi); void (*read) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi); @@ -132,9 +134,13 @@ int fuse_reply_err(fuse_req_t req, int err); /* forget */ int fuse_reply_none(fuse_req_t req); -/* lookup, mknod, mkdir, symlink, link */ +/* lookup, create, mknod, mkdir, symlink, link */ int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e); +/* create */ +int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e, + const struct fuse_file_info *fi); + /* getattr, setattr */ int fuse_reply_attr(fuse_req_t req, const struct stat *attr, double attr_timeout); -- cgit v1.2.3