代码拉取完成,页面将自动刷新
From 3b7200134925fcf5ae99b5c3b34465456d3bc002 Mon Sep 17 00:00:00 2001
From: Jacob Wang <jacob.wang@openanolis.org>
Date: Mon, 2 Aug 2021 01:16:05 +0800
Subject: [PATCH 1/1] virtiofsd: Adjust limit for minor version
Upstream virtiofsd only supports fuse >= 7.31
(https://github.com/qemu/qemu/commit/72c42e2d65510e073cf78fdc924d121c77fa0080),
while Cloud Kernel has fuse version 7.27, which causes virtiofs fails to run
due to version mismatch. This limitation is unnecessary in Cloud Kernel because
we have already backported mandatory fuse patches to support virtofs
frontend in Kernel. Hence, adjust the minor version limit to 7.27 to
suppress the limitation.
Note that current fuse implementation in Cloud Kernel might lack of some
certain capabilities in fuse 7.28 ~ 7.31, which may cause unexpected results,
this patch is merely a workaround to enable virtiofs in guest kernel side and
further action is ongoing to make sure fuse APIs in both sides are 100%
compatible.
Signed-off-by: Jacob Wang <jacob.wang@openanolis.org>
Acked-by: Caspar Zhang <caspar@linux.alibaba.com>
---
tools/virtiofsd/fuse_lowlevel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c
index 2dd36ec..2bb4318 100644
--- a/tools/virtiofsd/fuse_lowlevel.c
+++ b/tools/virtiofsd/fuse_lowlevel.c
@@ -1917,7 +1917,7 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid,
outarg.major = FUSE_KERNEL_VERSION;
outarg.minor = FUSE_KERNEL_MINOR_VERSION;
- if (arg->major < 7 || (arg->major == 7 && arg->minor < 31)) {
+ if (arg->major < 7 || (arg->major == 7 && arg->minor < 27)) {
fuse_log(FUSE_LOG_ERR, "fuse: unsupported protocol version: %u.%u\n",
arg->major, arg->minor);
fuse_reply_err(req, EPROTO);
--
1.8.3.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。