summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-08-18 21:42:08 +0000
committerphk <phk@FreeBSD.org>2004-08-18 21:42:08 +0000
commit90dd7ea538f3531d7a6e0f2faf41eed9b4da895d (patch)
tree79667afc57af5d85d61a2968bc9bd1042f05061d /sys
parent4eb39ec016214e41998209a2e636fee0d9c3176e (diff)
downloadFreeBSD-src-90dd7ea538f3531d7a6e0f2faf41eed9b4da895d.zip
FreeBSD-src-90dd7ea538f3531d7a6e0f2faf41eed9b4da895d.tar.gz
Do not override the class provided dumpconf function.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_slice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 74926b5..45b552b 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -465,7 +465,8 @@ g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_co
gp->softc = gsp;
gp->start = g_slice_start;
gp->spoiled = g_slice_spoiled;
- gp->dumpconf = g_slice_dumpconf;
+ if (gp->dumpconf == NULL)
+ gp->dumpconf = g_slice_dumpconf;
if (gp->class->destroy_geom == NULL)
gp->class->destroy_geom = g_slice_destroy_geom;
cp = g_new_consumer(gp);
OpenPOWER on IntegriCloud