[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/4 v11] lvm: Add support for cachevol lv
From: |
Patrick Plenefisch |
Subject: |
[PATCH 4/4 v11] lvm: Add support for cachevol lv |
Date: |
Mon, 11 Nov 2024 13:33:05 -0500 |
Mark cachevol lv's as ignored features, which is true
only if they are configured as "writethrough". This patch
does not let grub boot from "writeback" cache-enabled lv's
Signed-off-by: Patrick Plenefisch <simonpatp@gmail.com>
---
grub-core/disk/lvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c
index abb5b12ae..02e359827 100644
--- a/grub-core/disk/lvm.c
+++ b/grub-core/disk/lvm.c
@@ -811,6 +811,8 @@ grub_lvm_detect (grub_disk_t disk,
*/
else if (grub_strncmp (p, "cache\"",
sizeof ("cache\"") - 1) == 0
+ || grub_strncmp (p, "cache+CACHE_USES_CACHEVOL\"",
+ sizeof ("cache+CACHE_USES_CACHEVOL\"") - 1) == 0
|| grub_strncmp (p, "integrity\"",
sizeof ("integrity\"") - 1) == 0)
{
--
2.39.5
0004-lvm-Add-support-for-cachevol-lv.patch
Description: Text Data
- [PATCH 4/4 v11] lvm: Add support for cachevol lv,
Patrick Plenefisch <=