aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2004-07-29 09:27:49 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2004-07-29 09:27:49 +0000
commit891b874eedcc9f49364d12b4773e01a8b013fb67 (patch)
tree50d6c85719f8abdaaa91378f0d37c6d36eeedefd /include
parent94ed76ad4ae5c44a5b087b64f5dbf325f892f503 (diff)
add fuse_invalidate() to library API
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 726b681..845e645 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -171,6 +171,16 @@ void fuse_main(int argc, char *argv[], const struct fuse_operations *op);
*/
struct fuse *fuse_get(void);
+/**
+ * Invalidate cached data of a file.
+ *
+ * Useful if the 'kernel_cache' mount option is given, since in that
+ * case the cache is not invalidated on file open.
+ *
+ * @return 0 on success or -errno on failure
+ */
+int fuse_invalidate(struct fuse *f, const char *path);
+
/* ----------------------------------------------------------- *
* More detailed API *
* ----------------------------------------------------------- */