aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h2
-rw-r--r--include/fuse_lowlevel.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 6251158..39982dc 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -313,6 +313,8 @@ struct fuse_operations {
int (*access) (const char *, int);
int (*create) (const char *, mode_t, struct fuse_file_info *);
+
+ int (*ftruncate) (const char *, off_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 a8e3e3e..a1c475e 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -78,9 +78,9 @@ struct fuse_lowlevel_ops {
void (*lookup) (fuse_req_t req, fuse_ino_t parent, const char *name);
void (*forget) (fuse_req_t req, fuse_ino_t ino, unsigned long nlookup);
- void (*getattr)(fuse_req_t req, fuse_ino_t ino);
+ void (*getattr)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi);
void (*setattr)(fuse_req_t req, fuse_ino_t ino, struct stat *attr,
- int to_set);
+ int to_set, struct fuse_file_info *fi);
void (*access) (fuse_req_t req, fuse_ino_t ino, int mask);
void (*readlink)(fuse_req_t req, fuse_ino_t ino);
void (*mknod) (fuse_req_t req, fuse_ino_t parent, const char *name,