From ba3b225a126ebb3c6d4fe27c9f7c73aa4167001e Mon Sep 17 00:00:00 2001 From: Etienne Dublé Date: Sun, 20 Sep 2020 20:08:15 +0200 Subject: Allow caching symlinks in kernel page cache. (#551) This commit defines a new capability called `FUSE_CAP_CACHE_SYMLINKS`. It is off by default but you can now enable it by setting this flag in in the `want` field of the `fuse_conn_info` structure. When enabled, the kernel will save symlinks in its page cache, by making use of the feature introduced in kernel 4.20: https://github.com/torvalds/linux/commit/5571f1e65486be025f73fa6aa30fb03725d362a2 --- example/printcap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example/printcap.c') diff --git a/example/printcap.c b/example/printcap.c index e0eb6b6..bf058f5 100644 --- a/example/printcap.c +++ b/example/printcap.c @@ -77,6 +77,8 @@ static void pc_init(void *userdata, printf("\tFUSE_CAP_PARALLEL_DIROPS\n"); if(conn->capable & FUSE_CAP_POSIX_ACL) printf("\tFUSE_CAP_POSIX_ACL\n"); + if(conn->capable & FUSE_CAP_CACHE_SYMLINKS) + printf("\tFUSE_CAP_CACHE_SYMLINKS\n"); if(conn->capable & FUSE_CAP_NO_OPENDIR_SUPPORT) printf("\tFUSE_CAP_NO_OPENDIR_SUPPORT\n"); if(conn->capable & FUSE_CAP_EXPLICIT_INVAL_DATA) -- cgit v1.2.3