]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reimplement aliases in geom
authorWarner Losh <imp@FreeBSD.org>
Wed, 13 May 2020 19:17:28 +0000 (19:17 +0000)
committerWarner Losh <imp@FreeBSD.org>
Wed, 13 May 2020 19:17:28 +0000 (19:17 +0000)
commitae1cce524e42cca46daca179c4b18c56d9e0ab58
tree2ccf4102bcf3e68b70d00adf208e1c07be65cbfa
parentf272bc03ccefc1f822f14dbf6190ffc485cca62e
Reimplement aliases in geom

The alias needs to be part of the provider instead of the geom to work
properly. To bind the DEV geom, we need to look at the provider's names and
aliases and create the dev entries from there. If this lives in the GEOM, then
it won't propigate down the tree properly. Remove it from geom, add it provider.

Update geli, gmountver, gnop, gpart, and guzip to use it, which handles the bulk
of the uses in FreeBSD. I think this is all the providers that create a new name
based on their parent's name.
sys/geom/eli/g_eli.c
sys/geom/geom.h
sys/geom/geom_dev.c
sys/geom/geom_disk.c
sys/geom/geom_dump.c
sys/geom/geom_subr.c
sys/geom/mountver/g_mountver.c
sys/geom/nop/g_nop.c
sys/geom/part/g_part.c
sys/geom/uzip/g_uzip.c