From: Patrick Plenefisch Date: Mon, 11 Nov 2024 18:18:39 +0000 (-0500) Subject: disk/lvm: Add support for cachevol LV X-Git-Tag: grub-2.14-rc1~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a16b4304a2b4f2b5ff57e247725389475d2c52dd;p=thirdparty%2Fgrub.git disk/lvm: Add support for cachevol LV 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 Reviewed-by: Daniel Kiper --- diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c index 14839a65b..1f8e5d76d 100644 --- a/grub-core/disk/lvm.c +++ b/grub-core/disk/lvm.c @@ -822,6 +822,7 @@ grub_lvm_detect (grub_disk_t disk, * we can ignore for our read-only access. */ 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) { struct ignored_feature_lv *ignored_feature = NULL;