aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_lowlevel.h
diff options
context:
space:
mode:
authorLuis Henriques <luis@igalia.com>2025-05-22 15:15:15 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-06-18 13:47:11 +0200
commit5ceb0b05cb48e6cfa2c81160df9f1212623e86eb (patch)
tree58a2b212155964cb1dd705eed9cddd5674185130 /include/fuse_lowlevel.h
parent3793b1748ad151c8043dee1db198fffa3dbb5a67 (diff)
downloadlibfuse-5ceb0b05cb48e6cfa2c81160df9f1212623e86eb.tar.gz
fuse: add support to FUSE_NOTIFY_INC_EPOCH
This patch adds support for the FUSE INC_EPOCH notify. This new operation simply increments the FUSE connection epoch value, allowing to invalidate all the dentries next time they are revalidated. Signed-off-by: Luis Henriques <luis@igalia.com>
Diffstat (limited to 'include/fuse_lowlevel.h')
-rw-r--r--include/fuse_lowlevel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 138a784..82f4a8d 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -1745,6 +1745,20 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino,
off_t off, off_t len);
/**
+ * Notify to increment the epoch for the current
+ *
+ * Each fuse connection has an 'epoch', which is initialized during INIT.
+ * Caching will then be validated against the epoch value: if the current epoch
+ * is higher than an object being revalidated, the object is invalid.
+ *
+ * This function simply increment the current epoch value.
+ *
+ * @param se the session object
+ * @return zero for success, -errno for failure
+ */
+int fuse_lowlevel_notify_increment_epoch(struct fuse_session *se);
+
+/**
* Notify to invalidate parent attributes and the dentry matching parent/name
*
* To avoid a deadlock this function must not be called in the