Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/geom_subr.c
Show First 20 Lines • Show All 754 Lines • ▼ Show 20 Lines | if (size == pp->mediasize) | ||||
return; | return; | ||||
hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); | hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); | ||||
hh->pp = pp; | hh->pp = pp; | ||||
hh->size = size; | hh->size = size; | ||||
g_post_event(g_resize_provider_event, hh, M_WAITOK, NULL); | g_post_event(g_resize_provider_event, hh, M_WAITOK, NULL); | ||||
} | } | ||||
#ifndef _PATH_DEV | |||||
#define _PATH_DEV "/dev/" | |||||
#endif | |||||
struct g_provider * | struct g_provider * | ||||
g_provider_by_name(char const *arg) | g_provider_by_name(char const *arg) | ||||
{ | { | ||||
struct g_class *cp; | struct g_class *cp; | ||||
struct g_geom *gp; | struct g_geom *gp; | ||||
struct g_provider *pp, *wpp; | struct g_provider *pp, *wpp; | ||||
if (strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) | if (strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) | ||||
▲ Show 20 Lines • Show All 905 Lines • Show Last 20 Lines |