[3/3] fs/fuse kio: add warning about jumbo chunks

Submitted by Pavel Butsykin on March 26, 2019, 3:07 p.m.

Details

Message ID 20190326150711.21664-4-pbutsykin@virtuozzo.com
State New
Series "fix jumbo chunk warning"
Headers show

Commit Message

Pavel Butsykin March 26, 2019, 3:07 p.m.
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@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
index 6d12b8038e8a..aa1c79f440cb 100644
--- a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
+++ b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
@@ -318,6 +318,9 @@  static int kpcs_do_file_open(struct fuse_conn *fc, struct file *file, struct ino
 
 	if (info.sys.map_type != PCS_MAP_PLAIN) {
 		TRACE("Unsupported map_type:%x, ignore\n", info.sys.map_type);
+
+		if (info.sys.chunk_size_hi)
+			pr_warn_once("kio: fpath doesn't support jumbo chunks\n");
 		return 0;
 	}