]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
efivar: Try harder to find label's efimedia
authorWarner Losh <imp@FreeBSD.org>
Thu, 16 Feb 2023 16:36:03 +0000 (09:36 -0700)
committerWarner Losh <imp@FreeBSD.org>
Sun, 19 Feb 2023 00:46:57 +0000 (17:46 -0700)
commit9ad4c0468f1924cf7bdb9830bb781de9ca095c61
treee3345035cc6e89cee5c70de57ef7670d99fbb382
parente9296dc1bcd21cd9d719389cd04235ce4513e84d
efivar: Try harder to find label's efimedia

If there's no efimedia attribute on the provider, and the provider's a
glabel, then find the 'parent' geom. In this case, the provider's name
is label-type/name, but the geom's label will that of the underlying
device (eg ada0p1). If it is, recurisvely call find_geom_efimedia with
the geom's name, which shuold have the efimedia attribute.

Sponsored by: Netflix
Reviewed by: corvink, manu, asomers
Differential Revision: https://reviews.freebsd.org/D38614

(cherry picked from commit ccf2121d59ac51e1a0287d75262d48018d09cad6)
lib/libefivar/efivar-dp-xlate.c