[PATCH 0/6 v12] LVM Cachevol and Integrity volumes break entire LVM VG

2024-12-07 Thread Patrick Plenefisch
In an effort to solve https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061168 for myself, I implemented basic support for cachevol and integrity volumes in LVM. This is just an extension of the cachepool support that already existed, and just like that support, I ignore all of the metadata and j

[PATCH 1/6 v12] disk/lvm: Make cache_lv more generic as ignored_feature_lv

2024-12-07 Thread Patrick Plenefisch
This patch isn't necessary by itself, but when combined with the next two patchs it enhances readability as ignored_features_lv is then used for multiple types of extra LV's, not just cache LV's Signed-off-by: Patrick Plenefisch Reviewed-by: Daniel Kiper --- grub-core/disk/lvm.c | 176 +

[PATCH 2/6 v12] disk/lvm: Remove unused cache_pool

2024-12-07 Thread Patrick Plenefisch
cache_pool is never read or used, remove it Signed-off-by: Patrick Plenefisch Reviewed-by: Daniel Kiper --- grub-core/disk/lvm.c | 25 - 1 file changed, 25 deletions(-) diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c index 36023279f..286132d74 100644 --- a/grub

[PATCH 3/6 v12] lvm: Match all lvm segments before validation

2024-12-07 Thread Patrick Plenefisch
pv matching must be completely finished before validating a volume, otherwise referenced raid stripes may not have pv data applied yet This change is required for integrity & cachevol support Signed-off-by: Patrick Plenefisch --- grub-core/disk/diskfilter.c | 6 -- 1 file changed, 4 inserti

[PATCH 0/6 v12] LVM Cachevol and Integrity volumes break entire LVM VG

2024-12-07 Thread Patrick Plenefisch
In an effort to solve https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061168 for myself, I implemented basic support for cachevol and integrity volumes in LVM. This is just an extension of the cachepool support that already existed, and just like that support, I ignore all of the metadata and j

[PATCH 1/6 v12] disk/lvm: Make cache_lv more generic as ignored_feature_lv

2024-12-07 Thread Patrick Plenefisch
This patch isn't necessary by itself, but when combined with the next two patchs it enhances readability as ignored_features_lv is then used for multiple types of extra LV's, not just cache LV's Signed-off-by: Patrick Plenefisch Reviewed-by: Daniel Kiper --- grub-core/disk/lvm.c | 176 +

[PATCH 6/6 v12] lvm: Add support for cachevol lv

2024-12-07 Thread Patrick Plenefisch
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 --- grub-core/disk/lvm.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 4/6 v12] lvm: Add support for integrity lv

2024-12-07 Thread Patrick Plenefisch
lv matching must be done after processing the ignored feature indirections, as integrity volumes & caches may have several levels of indirection that the segments must be shifted through. Signed-off-by: Patrick Plenefisch --- grub-core/disk/lvm.c | 70

[PATCH 5/6 v12] lvm: add informational messages in error cases of ignored features

2024-12-07 Thread Patrick Plenefisch
This patch contains a change requested by Daniel Kiper to use a null character instead of an integer zero to terminate strings Signed-off-by: Patrick Plenefisch --- grub-core/disk/lvm.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/grub-core/disk/lvm.c b/gr