Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146384613
D38614.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D38614.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 3, 6:44 AM (10 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29187624
Default Alt Text
D38614.diff (664 B)
Attached To
Mode
D38614: efivar: Try harder to find label's efimedia
Attached
Detach File
Event Timeline
Log In to Comment