Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171188836
D25168.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
813 B
Referenced Files
None
Subscribers
None
D25168.diff
View Options
Index: sys/geom/geom_subr.c
===================================================================
--- sys/geom/geom_subr.c
+++ sys/geom/geom_subr.c
@@ -770,6 +770,7 @@
struct g_class *cp;
struct g_geom *gp;
struct g_provider *pp, *wpp;
+ struct g_geom_alias *gap;
if (strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
arg += sizeof(_PATH_DEV) - 1;
@@ -778,7 +779,11 @@
LIST_FOREACH(cp, &g_classes, class) {
LIST_FOREACH(gp, &cp->geom, geom) {
LIST_FOREACH(pp, &gp->provider, provider) {
- if (strcmp(arg, pp->name) != 0)
+ LIST_FOREACH(gap, &pp->aliases, ga_next) {
+ if (strcmp(arg, gap->ga_alias) == 0)
+ break;
+ }
+ if (gap == NULL && strcmp(arg, pp->name) != 0)
continue;
if ((gp->flags & G_GEOM_WITHER) == 0 &&
(pp->flags & G_PF_WITHER) == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 10, 9:13 AM (10 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38638924
Default Alt Text
D25168.diff (813 B)
Attached To
Mode
D25168: geom(4): Look for aliases when searching for providers by name
Attached
Detach File
Event Timeline
Log In to Comment