]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
efivar: Really look for labels for the provider with right 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:58 +0000 (17:46 -0700)
commitf4d711e7209073404c821c9c26c7c17b87b61997
tree7b7ab517456ece6d0ca1a744bf7fbd8608e92837
parent8ab17c6dd1d8e8056e5354390f29e0f36cf4e406
efivar: Really look for labels for the provider with right efimedia

The prior code mistakently thought that the g_consumer that hung off the
provider we found were the right thing to use to find all the glabel
aliases for this node. However, the only way to find that is to iterate
through all the geoms that belong to the glabel geom class, looking for
those geoms with the same name as the provider with the right efimedia.
Do this in a way that caches glabel class, and allows for it to be
absent. Tighten the filter for mounted filesystems to only look
for the ones that are mounted on /dev/.. since the rest of the code
assumes that.

MFC After: 3 days
Sponsored by: Netflix
Reviewed by: corvink, asomers
Differential Revision: https://reviews.freebsd.org/D38619

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