diff options
author | Luis Henriques <luis@igalia.com> | 2025-05-22 15:15:15 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-06-18 13:47:11 +0200 |
commit | 5ceb0b05cb48e6cfa2c81160df9f1212623e86eb (patch) | |
tree | 58a2b212155964cb1dd705eed9cddd5674185130 /lib/fuse_lowlevel.c | |
parent | 3793b1748ad151c8043dee1db198fffa3dbb5a67 (diff) | |
download | libfuse-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 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 5568786..13c05c6 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2973,6 +2973,19 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino, return send_notify_iov(se, FUSE_NOTIFY_INVAL_INODE, iov, 2); } +int fuse_lowlevel_notify_increment_epoch(struct fuse_session *se) +{ + struct iovec iov[1]; + + if (!se) + return -EINVAL; + + if (se->conn.proto_minor < 44) + return -ENOSYS; + + return send_notify_iov(se, FUSE_NOTIFY_INC_EPOCH, iov, 1); +} + /** * Notify parent attributes and the dentry matching parent/name * |