Skip to contentSkip to conversation

bug #61620: Grub2 fails to detect LVM volumes with: error: disk `lvmid/*/*' not found

DISCUSSION Horst Prote 2 participants 4 messages Apr 3, 2024 – May 6, 2024

lore
Share & tools
lore
#0 lore raw

Hi,

could the patch supplied in bug #61620
(https://savannah.gnu.org/bugs/?func=detailitem&item_id=61620) please be reviewed and applied.

Thanks,
Horst Prote

Signature · 9 lines
Horst Prote, FMI            __o   Systemadministration Abt. ALG und TI
Universitaet Stuttgart     `\<,    Tel: +49 711 685-88348, FAX: -88310
Universitaetsstr. 38     ( )/( )            [email protected]
D-70569 Stuttgart              www.fmi.uni-stuttgart.de/alg/team/prote

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#1 lore raw
Quoted 5 lines · On Wed, 3 Apr 2024 10:23:59 +0200 Horst Prote <[email protected]>…

Hi,

could the patch supplied in bug #61620
(https://savannah.gnu.org/bugs/?func=detailitem&item_id=61620) please be reviewed and applied.

Unfortunately, the issues tracker is mostly unused. Patches are exclusively reviewed on this list. It would be nice if patches submitted on the issue tracker were automatically submitted to this list, but alas they are not. There should be really annoying blinking text on the issue tracker saying that patches will not be looked at unless they are sent to this list for review.

Would you be willing to submit the patch to the list so it can be reviewed?

Glenn

Quoted 4 lines

Thanks,
Horst Prote

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw
Quoted 16 lines · Glenn Washburn
Quoted 5 lines · On Wed, 3 Apr 2024 10:23:59 +0200 Horst Prote <[email protected]>…

Hi,

could the patch supplied in bug #61620
(https://savannah.gnu.org/bugs/?func=detailitem&item_id=61620) please be reviewed and applied.

Unfortunately, the issues tracker is mostly unused. Patches are exclusively reviewed on this list. It would be nice if patches submitted on the issue tracker were automatically submitted to this list, but alas they are not. There should be really annoying blinking text on the issue tracker saying that patches will not be looked at unless they are sent to this list for review.

Quoted 2 lines

Would you be willing to submit the patch to the list so it can be reviewed?

OK, here is the patch from bug #61620 as supplied by
https://savannah.gnu.org/users/rogier777

---------------------------------------------------

grub-core/disk/lvm.c +1 -1
Index: grub2-2.02+dfsg1/grub-core/disk/lvm.c
===================================================================
@@ -253,7 +253,7 @@ error_parsing_metadata:
 
   p = q = (char *)ptr;
 
-  if (grub_add ((grub_size_t)metadatabuf, (grub_size_t)mda_size, &ptr))
+  if (grub_add (ptr, (grub_size_t)grub_le_to_cpu64 (rlocn->size), &ptr))
     goto error_parsing_metadata;
 
   mda_end = (char *)ptr;

----------------------------------------------------

Quoted 1 line

Glenn

Horst

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
Quoted 18 lines · On Thu, 2 May 2024 18:40:16 +0200 Horst Prote <[email protected]>…
Quoted 16 lines · Glenn Washburn
Quoted 5 lines · On Wed, 3 Apr 2024 10:23:59 +0200 Horst Prote <[email protected]>…

Hi,

could the patch supplied in bug #61620
(https://savannah.gnu.org/bugs/?func=detailitem&item_id=61620) please be reviewed and applied.

Unfortunately, the issues tracker is mostly unused. Patches are exclusively reviewed on this list. It would be nice if patches submitted on the issue tracker were automatically submitted to this list, but alas they are not. There should be really annoying blinking text on the issue tracker saying that patches will not be looked at unless they are sent to this list for review.

Quoted 4 lines
Quoted 2 lines

Would you be willing to submit the patch to the list so it can be reviewed?

OK, here is the patch from bug #61620 as supplied by
https://savannah.gnu.org/users/rogier777

Thank you Horst,

Unfortunately, this has a near zero chance of even being looked at by Daniel for various reasons. The foremost being that its a patch against a debian version of 2.02, and not current master. The patch is also not in an acceptable form for this list (see other patches submitted here).

I've looked at the issue and it is a little worrying. I'm surprised there haven't been more complaints or that I've not yet run into this (I suppose I nor many others have a VG that has been changed more than 220 times). I'll submit a proper patch to the list to get the ball moving on this.

Glenn

Quoted 17 lines

---------------------------------------------------
Index: grub2-2.02+dfsg1/grub-core/disk/lvm.c
===================================================================

grub-core/disk/lvm.c +1 -2
@@ -253,7 +253,7 @@ error_parsing_metadata:
 
   p = q = (char *)ptr;
 
-  if (grub_add ((grub_size_t)metadatabuf, (grub_size_t)mda_size, &ptr))
+  if (grub_add (ptr, (grub_size_t)grub_le_to_cpu64 (rlocn->size), &ptr))
     goto error_parsing_metadata;
 
   mda_end = (char *)ptr;
----------------------------------------------------
Quoted 7 lines
Quoted 1 line

Glenn

Horst

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel