From ecce1bf2ff73eb37048a784df0fa97ad041c6bdd Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 25 Aug 2005 15:19:06 +0000 Subject: fix --- include/fuse.h | 2 ++ include/fuse_lowlevel.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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, -- cgit v1.2.3