summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_bsd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-08-08 06:49:07 +0000
committerphk <phk@FreeBSD.org>2004-08-08 06:49:07 +0000
commit8a11f1b4a6e444c06beac9b61cd820cf6b82516f (patch)
tree93b8d93d433b81dc0f847a70e6344dafaeccf6d8 /sys/geom/geom_bsd.c
parentcb84366718580d5c3c1cdea1706a0c06eea5d876 (diff)
downloadFreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.zip
FreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.tar.gz
Use default method initialization on geoms.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r--sys/geom/geom_bsd.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c
index bbf4022..66cff5c 100644
--- a/sys/geom/geom_bsd.c
+++ b/sys/geom/geom_bsd.c
@@ -490,13 +490,6 @@ g_bsd_taste(struct g_class *mp, struct g_provider *pp, int flags)
if (gp == NULL)
return (NULL);
- /*
- * Fill in the optional details, in our case we have a dumpconf
- * routine which the "slice" code should call at the right time
- */
- gp->dumpconf = g_bsd_dumpconf;
- gp->ioctl = g_bsd_ioctl;
-
/* Get the geom_slicer softc from the geom. */
gsp = gp->softc;
@@ -671,6 +664,8 @@ static struct g_class g_bsd_class = {
.name = BSD_CLASS_NAME,
.taste = g_bsd_taste,
.ctlreq = g_bsd_config,
+ .dumpconf = g_bsd_dumpconf,
+ .ioctl = g_bsd_ioctl,
};
DECLARE_GEOM_CLASS(g_bsd_class, g_bsd);
OpenPOWER on IntegriCloud