[Devel] [PATCH v2 2/2] fs/fuse kio: add warning about jumbo chunks

Pavel Butsykin pbutsykin at virtuozzo.com
Mon Apr 15 12:37:25 MSK 2019


KIO doesn't support jumbo chunks yet, so all requests to jumbo chunks are
silently redirected to user-space. It will be useful to see a message about
this until support has been added to KIO.

Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
index 460155bc9d10..a719a8cc4c60 100644
--- a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
+++ b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
@@ -323,6 +323,12 @@ static int kpcs_do_file_open(struct fuse_conn *fc, struct file *file, struct ino
 		return 0;
 	}
 
+	if (info.sys.chunk_size_hi) {
+		TRACE("Unsupported chunk_size_hi:%x\n", info.sys.chunk_size_hi);
+		pr_warn_once("kio: fpath doesn't support jumbo chunks\n");
+		return 0;
+	}
+
 	di = kzalloc(sizeof(*di), GFP_KERNEL);
 	if (!di)
 		return -ENOMEM;
-- 
2.15.1



More information about the Devel mailing list