summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2008-10-02 10:01:05 +0000
committerlulf <lulf@FreeBSD.org>2008-10-02 10:01:05 +0000
commite37076e922529a2e36186f0029b5ecf50f20965b (patch)
treedb149d6e94db49cfb1d6025b932cd9bb0ffe2050 /sys/geom/vinum
parentf5703ce9b7658f8b6e36328ba758dc1a8ca92f0b (diff)
downloadFreeBSD-src-e37076e922529a2e36186f0029b5ecf50f20965b.zip
FreeBSD-src-e37076e922529a2e36186f0029b5ecf50f20965b.tar.gz
- Use the new gv_write_header function to write out the header when removing a
drive to make sure that the header is in the correct format.
Diffstat (limited to 'sys/geom/vinum')
-rw-r--r--sys/geom/vinum/geom_vinum_rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/vinum/geom_vinum_rm.c b/sys/geom/vinum/geom_vinum_rm.c
index a6bc71b..91e9022 100644
--- a/sys/geom/vinum/geom_vinum_rm.c
+++ b/sys/geom/vinum/geom_vinum_rm.c
@@ -359,7 +359,7 @@ gv_rm_drive(struct gv_softc *sc, struct gctl_req *req, struct gv_drive *d, int f
/* Clear the Vinum Magic. */
d->hdr->magic = GV_NOMAGIC;
g_topology_unlock();
- err = g_write_data(cp, GV_HDR_OFFSET, d->hdr, GV_HDR_LEN);
+ err = gv_write_header(cp, d->hdr);
if (err) {
printf("GEOM_VINUM: gv_rm_drive: couldn't write header to '%s'"
", errno: %d\n", cp->provider->name, err);
OpenPOWER on IntegriCloud