10 Star 3 Fork 40

src-openEuler/lvm2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0014-use-sync-io-read-bcache-by-defaults.patch 926 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangzhiqiang 提交于 2023-06-08 16:58 . fix fail to create lv
From b36985754f67c3df89c42ed29250abf6dfaf7890 Mon Sep 17 00:00:00 2001
From: Wu Guanghao <wuguanghao3@huawei.com>
Date: Sat, 4 Jun 2022 03:06:52 +0400
Subject: [PATCH] use sync io read bcache by defaults
Currently lvm2 uses aio to read bcache by default,
but aio is created successfully but read fails,
resulting in lv creation failure. So use sync io
read bcache by default.
Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
---
lib/config/defaults.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index faf628f..d039cc7 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -70,7 +70,7 @@
#define DEFAULT_METADATA_READ_ONLY 0
#define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
#define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"
-#define DEFAULT_USE_AIO 1
+#define DEFAULT_USE_AIO 0
#define DEFAULT_SANLOCK_LV_EXTEND_MB 256
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/lvm2.git
git@gitee.com:src-openeuler/lvm2.git
src-openeuler
lvm2
lvm2
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385