HomeFreeBSD

efivar: Try harder to find label's efimedia

Description

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)

Details

Provenance
impAuthored on Feb 16 2023, 4:36 PM
Reviewer
corvink
Differential Revision
D38614: efivar: Try harder to find label's efimedia
Parents
rGbae5c73a5ffa: sys/_endian.h: Move powerpc workaround into _endian.h
Branches
Unknown
Tags
Unknown