aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/stripe
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-08-09 11:14:25 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-08-09 11:14:25 +0000
commit7e72a70863332a72c624ab3b5e094d92edbfa8fb (patch)
tree33baeacb69499603d7dcf852e68770fbdabcc1e0 /sys/geom/stripe
parent7866c62aa6ba8bf127e6da5629e42bdc423d8156 (diff)
Notes
Diffstat (limited to 'sys/geom/stripe')
-rw-r--r--sys/geom/stripe/g_stripe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c
index e3106b4a8f84..017cf3ce4596 100644
--- a/sys/geom/stripe/g_stripe.c
+++ b/sys/geom/stripe/g_stripe.c
@@ -883,9 +883,10 @@ g_stripe_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
gp->orphan = g_stripe_orphan;
cp = g_new_consumer(gp);
g_attach(cp, pp);
-
error = g_stripe_read_metadata(cp, &md);
- g_wither_geom(gp, ENXIO);
+ g_detach(cp);
+ g_destroy_consumer(cp);
+ g_destroy_geom(gp);
if (error != 0)
return (NULL);
gp = NULL;