5a6f97
From 492d3a24c13babd103fb71d44adfb8e94687db52 Mon Sep 17 00:00:00 2001
5a6f97
From: Pavel Reichl <preichl@redhat.com>
5a6f97
Date: Tue, 7 Jun 2022 08:27:36 +0200
5a6f97
Subject: [PATCH 1/4] Synchronize fuse_kernel.h
5a6f97
5a6f97
Signed-off-by: Pavel Reichl <preichl@redhat.com>
5a6f97
---
5a6f97
 include/fuse_kernel.h | 10 +++++++++-
5a6f97
 1 file changed, 9 insertions(+), 1 deletion(-)
5a6f97
5a6f97
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
5a6f97
index 42fa977..b55fa8b 100644
5a6f97
--- a/include/fuse_kernel.h
5a6f97
+++ b/include/fuse_kernel.h
5a6f97
@@ -215,10 +215,12 @@ struct fuse_file_lock {
5a6f97
  * FOPEN_DIRECT_IO: bypass page cache for this open file
5a6f97
  * FOPEN_KEEP_CACHE: don't invalidate the data cache on open
5a6f97
  * FOPEN_NONSEEKABLE: the file is not seekable
5a6f97
+ * FOPEN_CACHE_DIR: allow caching this directory
5a6f97
  */
5a6f97
 #define FOPEN_DIRECT_IO		(1 << 0)
5a6f97
 #define FOPEN_KEEP_CACHE	(1 << 1)
5a6f97
 #define FOPEN_NONSEEKABLE	(1 << 2)
5a6f97
+#define FOPEN_CACHE_DIR		(1 << 3)
5a6f97
 
5a6f97
 /**
5a6f97
  * INIT request/reply flags
5a6f97
@@ -244,6 +246,8 @@ struct fuse_file_lock {
5a6f97
  * FUSE_PARALLEL_DIROPS: allow parallel lookups and readdir
5a6f97
  * FUSE_HANDLE_KILLPRIV: fs handles killing suid/sgid/cap on write/chown/trunc
5a6f97
  * FUSE_POSIX_ACL: filesystem supports posix acls
5a6f97
+ * FUSE_MAX_PAGES: init_out.max_pages contains the max number of req pages
5a6f97
+ * FUSE_CACHE_SYMLINKS: cache READLINK responses
5a6f97
  */
5a6f97
 #define FUSE_ASYNC_READ		(1 << 0)
5a6f97
 #define FUSE_POSIX_LOCKS	(1 << 1)
5a6f97
@@ -266,6 +270,8 @@ struct fuse_file_lock {
5a6f97
 #define FUSE_PARALLEL_DIROPS    (1 << 18)
5a6f97
 #define FUSE_HANDLE_KILLPRIV	(1 << 19)
5a6f97
 #define FUSE_POSIX_ACL		(1 << 20)
5a6f97
+#define FUSE_MAX_PAGES		(1 << 22)
5a6f97
+#define FUSE_CACHE_SYMLINKS	(1 << 23)
5a6f97
 
5a6f97
 /**
5a6f97
  * CUSE INIT request/reply flags
5a6f97
@@ -604,7 +610,9 @@ struct fuse_init_out {
5a6f97
 	uint16_t	congestion_threshold;
5a6f97
 	uint32_t	max_write;
5a6f97
 	uint32_t	time_gran;
5a6f97
-	uint32_t	unused[9];
5a6f97
+	uint16_t	max_pages;
5a6f97
+	uint16_t	padding;
5a6f97
+	uint32_t	unused[8];
5a6f97
 };
5a6f97
 
5a6f97
 #define CUSE_INIT_INFO_MAX 4096
5a6f97
-- 
5a6f97
2.36.1
5a6f97