diff options
author | phk <phk@FreeBSD.org> | 2004-08-08 06:49:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-08-08 06:49:07 +0000 |
commit | 8a11f1b4a6e444c06beac9b61cd820cf6b82516f (patch) | |
tree | 93b8d93d433b81dc0f847a70e6344dafaeccf6d8 /sys/geom/bde | |
parent | cb84366718580d5c3c1cdea1706a0c06eea5d876 (diff) | |
download | FreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.zip FreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.tar.gz |
Use default method initialization on geoms.
Diffstat (limited to 'sys/geom/bde')
-rw-r--r-- | sys/geom/bde/g_bde.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c index 84a7b8b..73d85ab 100644 --- a/sys/geom/bde/g_bde.c +++ b/sys/geom/bde/g_bde.c @@ -130,10 +130,6 @@ g_bde_create_geom(struct gctl_req *req, struct g_class *mp, struct g_provider *p gp = g_new_geomf(mp, "%s.bde", pp->name); - gp->start = g_bde_start; - gp->orphan = g_bde_orphan; - gp->access = g_bde_access; - gp->spoiled = g_std_spoiled; cp = g_new_consumer(gp); g_attach(cp, pp); error = g_access(cp, 1, 1, 1); @@ -278,6 +274,10 @@ static struct g_class g_bde_class = { .name = BDE_CLASS_NAME, .destroy_geom = g_bde_destroy_geom, .ctlreq = g_bde_ctlreq, + .start = g_bde_start, + .orphan = g_bde_orphan, + .access = g_bde_access, + .spoiled = g_std_spoiled, }; DECLARE_GEOM_CLASS(g_bde_class, g_bde); |