1 Star 0 Fork 38

xisme/qemu-kvm_src-anolis

forked from src-anolis-os/qemu-kvm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
kvm-virtiofsd-Adjust-limit-for-minor-version.patch 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
jiangbo.jacob 提交于 2021-08-01 13:37 +08:00 . Adjust to support virtiofsd minor > 27
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xisme/qemu-kvm_src-anolis.git
git@gitee.com:xisme/qemu-kvm_src-anolis.git
xisme
qemu-kvm_src-anolis
qemu-kvm_src-anolis
vtkm_support_csv

搜索帮助

371d5123 14472233 46e8bd33 14472233