diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c index 8e5f3c551dd0..63f3cbee82b7 100644 --- a/sys/geom/concat/g_concat.c +++ b/sys/geom/concat/g_concat.c @@ -897,6 +897,9 @@ g_concat_find_device(struct g_class *mp, const char *name) struct g_concat_softc *sc; struct g_geom *gp; + if (strncmp(name, _PATH_DEV, strlen(_PATH_DEV)) == 0) + name += strlen(_PATH_DEV); + LIST_FOREACH(gp, &mp->geom, geom) { sc = gp->softc; if (sc == NULL)