diff options
author | phk <phk@FreeBSD.org> | 2002-04-04 09:54:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-04 09:54:13 +0000 |
commit | fd177bc9595b9076f3b0010d5c8d15d431382251 (patch) | |
tree | c6baa9879fc1591197958488bdcaff9076c51439 /sys/geom/geom_dev.c | |
parent | 069aa8e324a61f68be3ba5e22bf5fff15ddf4f09 (diff) | |
download | FreeBSD-src-fd177bc9595b9076f3b0010d5c8d15d431382251.zip FreeBSD-src-fd177bc9595b9076f3b0010d5c8d15d431382251.tar.gz |
Move access and orphan member functions from class to geom.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 31ca442..1365eea 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -80,8 +80,6 @@ static struct g_class g_dev_class = { "DEV-class", g_dev_taste, NULL, - g_dev_orphan, - NULL, G_CLASS_INITSTUFF }; @@ -140,6 +138,7 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) if (cp->geom->class == mp) return (NULL); gp = g_new_geomf(mp, pp->name); + gp->orphan = g_dev_orphan; cp = g_new_consumer(gp); g_attach(cp, pp); error = g_access_rel(cp, 1, 0, 0); |