Lines Matching full:gp
60 struct g_geom *gp);
61 static int g_label_destroy(struct g_geom *gp, boolean_t force);
130 struct g_geom *gp __unused)
225 struct g_geom *gp;
240 gp = NULL;
247 LIST_FOREACH(gp, &mp->geom, geom) {
248 pp2 = LIST_FIRST(&gp->provider);
263 gp = g_slice_new(mp, 1, pp, &cp, NULL, 0, NULL);
264 if (gp == NULL) {
270 gp->orphan = g_label_orphan;
271 gp->spoiled = g_label_spoiled;
272 gp->resize = g_label_resize;
274 g_slice_config(gp, 0, G_SLICE_CONFIG_SET, (off_t)0, mediasize,
277 return (gp);
281 g_label_destroy(struct g_geom *gp, boolean_t force)
286 pp = LIST_FIRST(&gp->provider);
299 g_slice_spoiled(LIST_FIRST(&gp->consumer));
382 struct g_geom *gp;
402 gp = g_new_geomf(mp, "label:taste");
403 gp->start = g_label_start_taste;
404 gp->access = g_label_access_taste;
405 gp->orphan = g_label_orphan_taste;
406 cp = g_new_consumer(gp);
436 g_destroy_geom(gp);
495 struct g_geom *gp;
500 LIST_FOREACH(gp, &mp->geom, geom) {
501 pp = LIST_FIRST(&gp->provider);
504 return (gp);
513 struct g_geom *gp;
541 gp = g_label_find_geom(mp, name);
542 if (gp == NULL) {
547 error = g_label_destroy(gp, *force);
550 LIST_FIRST(&gp->provider)->name, error);