Page MenuHomeFreeBSD

D38614.diff
No OneTemporary

D38614.diff

diff --git a/lib/libefivar/efivar-dp-xlate.c b/lib/libefivar/efivar-dp-xlate.c
--- a/lib/libefivar/efivar-dp-xlate.c
+++ b/lib/libefivar/efivar-dp-xlate.c
@@ -527,6 +527,15 @@
if (pp == NULL)
return (NULL);
efimedia = geom_pp_attr(mesh, pp, "efimedia");
+
+ /*
+ * If this device doesn't hav an efimedia attribute, see if it is a
+ * glabel node, and if so look for the underlying provider to get the
+ * efimedia attribute from.
+ */
+ if (efimedia == NULL &&
+ strcmp(pp->lg_geom->lg_class->lg_name, G_LABEL) == 0)
+ efimedia = find_geom_efimedia(mesh, pp->lg_geom->lg_name);
if (efimedia == NULL)
return (NULL);
return strdup(efimedia);

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 3:49 PM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14644900
Default Alt Text
D38614.diff (664 B)

Event Timeline