aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_lowlevel.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-10-26 16:04:04 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-10-26 16:04:04 +0000
commit11509ce3fc6a36b6e3c094bf8aa11820f17d0ede (patch)
tree7b7584927fab4174852d5c650834326e3f7a8a37 /include/fuse_lowlevel.h
parentd9079a75b14b73e7953adf4958709b1e5ab3804c (diff)
downloadlibfuse-11509ce3fc6a36b6e3c094bf8aa11820f17d0ede.tar.gz
add ftruncate() method
Diffstat (limited to 'include/fuse_lowlevel.h')
-rw-r--r--include/fuse_lowlevel.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index e9c64ce..a027163 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -198,6 +198,13 @@ struct fuse_lowlevel_ops {
* bitmask contain valid values. Other members contain undefined
* values.
*
+ * If the setattr was invoked from the ftruncate() system call
+ * under Linux kernel versions 2.6.15 or later, the fi->fh will
+ * contain the value set by the open method or will be undefined
+ * if the open method didn't set any value. Otherwise (not
+ * ftruncate call, or kernel version earlier than 2.6.15) the fi
+ * parameter will be NULL.
+ *
* Valid replies:
* fuse_reply_attr()
* fuse_reply_err()
@@ -206,7 +213,10 @@ struct fuse_lowlevel_ops {
* @param ino the inode number
* @param attr the attributes
* @param to_set bit mask of attributes which should be set
- * @param fi for future use, currently always NULL
+ * @param fi file information, or NULL
+ *
+ * Changed in version 2.5:
+ * file information filled in for ftruncate
*/
void (*setattr) (fuse_req_t req, fuse_ino_t ino, struct stat *attr,
int to_set, struct fuse_file_info *fi);