Page MenuHomeFreeBSD

D25168.diff
No OneTemporary

D25168.diff

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

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)

Event Timeline