diff options
author | Warner Losh <imp@FreeBSD.org> | 2020-05-13 19:17:28 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2020-05-13 19:17:28 +0000 |
commit | ae1cce524e42cca46daca179c4b18c56d9e0ab58 (patch) | |
tree | 2ccf4102bcf3e68b70d00adf208e1c07be65cbfa /sys/geom/geom_dev.c | |
parent | f272bc03ccefc1f822f14dbf6190ffc485cca62e (diff) | |
download | src-ae1cce524e42cca46daca179c4b18c56d9e0ab58.tar.gz src-ae1cce524e42cca46daca179c4b18c56d9e0ab58.zip |
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.
Notes
Notes:
svn path=/head/; revision=361015
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 155da2463449..4c62da6feecc 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -383,7 +383,7 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) /* * Now add all the aliases for this drive */ - LIST_FOREACH(gap, &pp->geom->aliases, ga_next) { + LIST_FOREACH(gap, &pp->aliases, ga_next) { error = make_dev_alias_p(MAKEDEV_CHECKNAME | MAKEDEV_WAITOK, &adev, dev, "%s", gap->ga_alias); if (error) { |