summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_subr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-01 20:32:24 +0000
committerphk <phk@FreeBSD.org>2003-05-01 20:32:24 +0000
commitc51ae09b82c6938c30e4aaba3ea20b3fec474081 (patch)
tree76ebd76d3ff15cdd93c9780fa8696e1fef7d3d8f /sys/geom/geom_subr.c
parent8a6199b879f9cc48d8ff97cebb27fe5e1db09b58 (diff)
downloadFreeBSD-src-c51ae09b82c6938c30e4aaba3ea20b3fec474081.zip
FreeBSD-src-c51ae09b82c6938c30e4aaba3ea20b3fec474081.tar.gz
Remove the now obsolete geomidorname hack.
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r--sys/geom/geom_subr.c83
1 files changed, 0 insertions, 83 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 17b3ae0..700c60f 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -688,86 +688,3 @@ g_sanity(void *ptr)
}
}
-struct g_class *
-g_idclass(struct geomidorname *p)
-{
- struct g_class *mp;
- char *n;
-
- if (p->len == 0) {
- LIST_FOREACH(mp, &g_classes, class)
- if ((uintptr_t)mp == p->u.id)
- return (mp);
- return (NULL);
- }
- n = g_malloc(p->len + 1, M_WAITOK);
- if (copyin(p->u.name, n, p->len) == 0) {
- n[p->len] = '\0';
- LIST_FOREACH(mp, &g_classes, class)
- if (!bcmp(n, mp->name, p->len + 1)) {
- g_free(n);
- return (mp);
- }
- }
- g_free(n);
- return (NULL);
-}
-
-struct g_geom *
-g_idgeom(struct geomidorname *p)
-{
- struct g_class *mp;
- struct g_geom *gp;
- char *n;
-
- if (p->len == 0) {
- LIST_FOREACH(mp, &g_classes, class)
- LIST_FOREACH(gp, &mp->geom, geom)
- if ((uintptr_t)gp == p->u.id)
- return (gp);
- return (NULL);
- }
- n = g_malloc(p->len + 1, M_WAITOK);
- if (copyin(p->u.name, n, p->len) == 0) {
- n[p->len] = '\0';
- LIST_FOREACH(mp, &g_classes, class)
- LIST_FOREACH(gp, &mp->geom, geom)
- if (!bcmp(n, gp->name, p->len + 1)) {
- g_free(n);
- return (gp);
- }
- }
- g_free(n);
- return (NULL);
-}
-
-struct g_provider *
-g_idprovider(struct geomidorname *p)
-{
- struct g_class *mp;
- struct g_geom *gp;
- struct g_provider *pp;
- char *n;
-
- if (p->len == 0) {
- LIST_FOREACH(mp, &g_classes, class)
- LIST_FOREACH(gp, &mp->geom, geom)
- LIST_FOREACH(pp, &gp->provider, provider)
- if ((uintptr_t)pp == p->u.id)
- return (pp);
- return (NULL);
- }
- n = g_malloc(p->len + 1, M_WAITOK);
- if (copyin(p->u.name, n, p->len) == 0) {
- n[p->len] = '\0';
- LIST_FOREACH(mp, &g_classes, class)
- LIST_FOREACH(gp, &mp->geom, geom)
- LIST_FOREACH(pp, &gp->provider, provider)
- if (!bcmp(n, pp->name, p->len + 1)) {
- g_free(n);
- return (pp);
- }
- }
- g_free(n);
- return (NULL);
-}
OpenPOWER on IntegriCloud