Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/journal/g_journal.c
Show First 20 Lines • Show All 2,505 Lines • ▼ Show 20 Lines | |||||
static struct g_journal_softc * | static struct g_journal_softc * | ||||
g_journal_find_device(struct g_class *mp, const char *name) | g_journal_find_device(struct g_class *mp, const char *name) | ||||
{ | { | ||||
struct g_journal_softc *sc; | struct g_journal_softc *sc; | ||||
struct g_geom *gp; | struct g_geom *gp; | ||||
struct g_provider *pp; | struct g_provider *pp; | ||||
if (strncmp(name, "/dev/", 5) == 0) | if (strncmp(name, _PATH_DEV, 5) == 0) | ||||
name += 5; | name += 5; | ||||
LIST_FOREACH(gp, &mp->geom, geom) { | LIST_FOREACH(gp, &mp->geom, geom) { | ||||
sc = gp->softc; | sc = gp->softc; | ||||
if (sc == NULL) | if (sc == NULL) | ||||
continue; | continue; | ||||
if (sc->sc_flags & GJF_DEVICE_DESTROY) | if (sc->sc_flags & GJF_DEVICE_DESTROY) | ||||
continue; | continue; | ||||
if ((sc->sc_type & GJ_TYPE_COMPLETE) != GJ_TYPE_COMPLETE) | if ((sc->sc_type & GJ_TYPE_COMPLETE) != GJ_TYPE_COMPLETE) | ||||
▲ Show 20 Lines • Show All 500 Lines • Show Last 20 Lines |