aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-11-14 16:13:11 -0800
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-11-14 16:13:11 -0800
commitad463481c4e413f22aa47963bc1e0f34382b5e54 (patch)
treeda8139feb3ba48f392157f1c2d7835a2fb19471c /include
parenta23607b0972f17e6c5c92f37fdfead926881e276 (diff)
Improve getattr() description
When writeback caching is enabled, the st_size value reported by the filesystem may be ignored.
Diffstat (limited to 'include')
-rw-r--r--include/fuse_lowlevel.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 0ae7734..7b007e7 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -248,7 +248,15 @@ struct fuse_lowlevel_ops {
void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);
/**
- * Get file attributes
+ * Get file attributes.
+ *
+ * If writeback caching is enabled, the kernel may have a
+ * better idea of a file's length than the FUSE file system
+ * (eg if there has been a write that extended the file size,
+ * but that has not yet been passed to the filesystem.n
+ *
+ * In this case, the st_size value provided by the file system
+ * will be ignored.
*
* Valid replies:
* fuse_reply_attr