]> 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 06:46:46 +0000 (23:46 -0700)
commit0c479a5c47dbbba7b6ff3a867e0981749e3262a5
tree024fd65342ffeefa7d66c12db5c846916a81bef9
parentbae5c73a5ffa237e437605bbf2216a574d1dbda2
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
Approved by: re@ (cperciva)

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