• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/geom/virstor/

Lines Matching refs:geom

53 #include <geom/geom.h>
54 #include <geom/geom_dbg.h>
56 #include <geom/virstor/g_virstor.h>
57 #include <geom/virstor/g_virstor_md.h>
71 /* Declare & initialize class structure ("geom class") */
80 /* The .dumpconf and the rest are only usable for a geom instance, so
245 sc->geom->name);
249 sc->geom->name, error);
269 const char *geom_name; /* geom to add a component to */
291 /* Find "our" geom */
305 "virstor %s", sc->geom->name);
306 gctl_error(req, "Virstor %s is incomplete", sc->geom->name);
333 cp = g_new_consumer(sc->geom);
368 pp->name, sc->geom->name);
408 sc->geom->name);
437 * Find a geom handled by the class
444 LIST_FOREACH(gp, &cp->geom, geom) {
469 sc->geom->name);
472 sc->geom->class->name, sc->geom->name);
498 strncpy(md->md_name, sc->geom->name, sizeof md->md_name);
540 /* Find "our" geom */
555 "virstor %s", sc->geom->name);
556 gctl_error(req, "Virstor %s is incomplete", sc->geom->name);
586 prov_name, sc->geom->name);
599 prov_name, sc->geom->name);
643 sc->geom->name);
674 * Destroy geom forcibly.
700 "table for %s", sc->geom->name);
707 sc->geom->name, count);
714 sc->geom->name);
743 sc->geom->name, count,
747 sc->geom->name);
761 * Examines a provider and creates geom instances if needed
776 /* We need a dummy geom to attach a consumer to the given provider */
813 * geom instance of this class needs to be created (in case the provider
814 * is first from a (possibly) multi-consumer geom) or it just needs
818 LIST_FOREACH(gp, &mp->geom, geom) {
822 if (strcmp(md.md_name, sc->geom->name) != 0)
828 if (gp != NULL) { /* We found an existing geom instance; add to it */
836 } else { /* New geom instance needs to be created */
876 * Remove a component (consumer) from geom instance; If it's the first
877 * component being removed, orphan the provider to announce geom's being
887 sc->geom->name));
893 sc->geom->name);
912 * Destroy geom - called internally
941 gp = sc->geom;
1058 LOG_MSG(LVL_DEBUG, "Creating geom instance for %s (id=%u)",
1071 LIST_FOREACH(gp, &mp->geom, geom) {
1073 if (sc != NULL && strcmp(sc->geom->name, md->md_name) == 0) {
1083 "kern.geom.virstor.debug sysctl up "
1085 sc->geom->name);
1110 sc->geom = gp;
1114 LOG_MSG(LVL_ANNOUNCE, "Device %s created", sc->geom->name);
1139 gp = sc->geom;
1154 "sector size (%d)", pp->name, sc->geom->name,
1180 LOG_MSG(LVL_DEBUG, "%s attached to %s", pp->name, sc->geom->name);
1187 * Check if everything's ready to create the geom provider & device entry,
1230 sc->geom->name, count, sc->chunk_count, sc->chunk_size / 1024);
1237 sc->geom->name);
1241 LOG_MSG(LVL_DEBUG, "Reading map for %s from %s", sc->geom->name,
1255 "for %s on %s", sc->geom->name,
1263 sc->geom->name,
1276 LOG_MSG(LVL_DEBUG, "Read map for %s", sc->geom->name);
1294 "(%d/%u: %s)", sc->geom->name,
1307 sc->geom->name, sc->components[index].chunk_count -
1315 __func__, sc->geom->name);
1330 __func__, (u_int)n, sc->geom->name);
1342 sc->provider = g_new_providerf(sc->geom, "virstor/%s",
1343 sc->geom->name);
1356 * Returns count of active providers in this geom instance
1383 gp = cp->geom;
1397 * Called to notify geom when it's been opened, and for what intent
1408 gp = pp->geom;
1409 KASSERT(gp != NULL, ("%s: NULL geom", __func__));
1535 sc = parent_b->bio_to->geom->softc;
1573 sc = pp->geom->softc;
1791 sc->geom->name);
1800 "(switching to %u/%u: %s)", sc->geom->name,
1868 * Motivation: to guard from accidentally calling geom methods when