aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-08-25 15:19:06 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-08-25 15:19:06 +0000
commitecce1bf2ff73eb37048a784df0fa97ad041c6bdd (patch)
tree21d192874d6e9ad229f3fbd74abd9e6cb0abe61b /include
parentb0c52c59f710b4619949adfc359dabfca005fe0d (diff)
downloadlibfuse-ecce1bf2ff73eb37048a784df0fa97ad041c6bdd.tar.gz
fix
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,