Blame SOURCES/0001-Synchronize-fuse_kernel.h.patch

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