From ad463481c4e413f22aa47963bc1e0f34382b5e54 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Mon, 14 Nov 2016 16:13:11 -0800 Subject: Improve getattr() description When writeback caching is enabled, the st_size value reported by the filesystem may be ignored. --- include/fuse_lowlevel.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3