Lines Matching defs:geom

477 	/* Revert any local changes to get this geom into a pristine state */
485 /* Now destroy the geom itself */
495 * Check if we reverted away the existence of the geom
513 struct ggeom *geom;
538 * Find the PART geom we are manipulating. This may be a consumer of
541 geom = NULL;
561 /* Destroy the geom and all sub-partitions */
569 if (geom == NULL && strcmp(pp->lg_geom->lg_class->lg_name, "PART") == 0)
570 geom = pp->lg_geom;
572 if (geom == NULL) {
578 LIST_FOREACH(gc, &geom->lg_config, lg_config) {
629 gctl_ro_param(r, "arg0", -1, geom->lg_name);
794 gpart_max_free(struct ggeom *geom, intmax_t *npartstart)
806 LIST_FOREACH(gc, &geom->lg_config, lg_config) {
814 LIST_FOREACH(pp, &geom->lg_provider, lg_provider)
817 LIST_FOREACH(pp, &geom->lg_provider, lg_provider)
846 pp = LIST_FIRST(&geom->lg_consumer)->lg_provider;
871 struct ggeom *geom;
903 * Find the PART geom we are manipulating. This may be a consumer of
906 geom = NULL;
909 geom = cp->lg_geom;
913 if (geom == NULL && strcmp(pp->lg_geom->lg_class->lg_name, "PART") == 0)
914 geom = pp->lg_geom;
918 if (geom != NULL) {
919 LIST_FOREACH(gc, &geom->lg_config, lg_config)
924 if (geom == NULL || scheme == NULL || strcmp(scheme, "(none)") == 0) {
935 * If we still don't have a geom, either the user has
939 if (geom == NULL)
942 maxsize = size = gpart_max_free(geom, &firstfree);
1081 LIST_FOREACH(pp, &geom->lg_provider, lg_provider) {
1109 gctl_ro_param(r, "arg0", -1, geom->lg_name);
1137 gctl_ro_param(r, "arg0", -1, geom->lg_name);
1159 * Try to destroy any geom that gpart picked up already here from
1192 struct ggeom *geom;
1202 /* Find out if this is the root of a gpart geom */
1203 geom = NULL;
1206 geom = cp->lg_geom;
1211 if (geom != NULL) {
1212 gpart_destroy(geom);
1218 gctl_ro_param(r, "arg0", -1, geom->lg_name);
1231 if (geom == NULL)