diff options
author | Etienne Dublé <etienne.duble@imag.fr> | 2020-09-20 20:08:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 19:08:15 +0100 |
commit | ba3b225a126ebb3c6d4fe27c9f7c73aa4167001e (patch) | |
tree | 19149b92c169f419778e5e9799054b0c52243150 /example/printcap.c | |
parent | 5b901ee0315658035661332d6d85d8bfd8816b6b (diff) | |
download | libfuse-ba3b225a126ebb3c6d4fe27c9f7c73aa4167001e.tar.gz |
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
Diffstat (limited to 'example/printcap.c')
-rw-r--r-- | example/printcap.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |