mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
g_concat_find_device: trim /dev/ if it is present, like other GEOM
classes. Reviewed by: cem MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25596
This commit is contained in:
parent
9093286b6a
commit
b23a7fbaab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363036
@ -897,6 +897,9 @@ g_concat_find_device(struct g_class *mp, const char *name)
|
|||||||
struct g_concat_softc *sc;
|
struct g_concat_softc *sc;
|
||||||
struct g_geom *gp;
|
struct g_geom *gp;
|
||||||
|
|
||||||
|
if (strncmp(name, _PATH_DEV, strlen(_PATH_DEV)) == 0)
|
||||||
|
name += strlen(_PATH_DEV);
|
||||||
|
|
||||||
LIST_FOREACH(gp, &mp->geom, geom) {
|
LIST_FOREACH(gp, &mp->geom, geom) {
|
||||||
sc = gp->softc;
|
sc = gp->softc;
|
||||||
if (sc == NULL)
|
if (sc == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user