Index: head/sbin/geom/core/geom.c =================================================================== --- head/sbin/geom/core/geom.c +++ head/sbin/geom/core/geom.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -861,6 +862,9 @@ find_geom(struct gclass *classp, const char *name) { struct ggeom *gp; + + if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) + name += sizeof(_PATH_DEV) - 1; LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { if (strcmp(gp->lg_name, name) == 0)