lvm2/0024-use-sync-io-read-bcache-by-defaults.patch
wangzhiqiang ed40e0ee4b fix fail to create lv and pvid file leakage
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 6f33124912129016c7cb1fc847142b64c56ce0f8)
2023-06-09 16:28:25 +08:00

32 lines
926 B
Diff

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