aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 *
* ----------------------------------------------------------- */