aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/vinum
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@FreeBSD.org>2008-10-02 10:01:05 +0000
committerUlf Lilleengen <lulf@FreeBSD.org>2008-10-02 10:01:05 +0000
commit64d62b289efb1763bcf92b8ed90d3e614ba0a61d (patch)
treedb149d6e94db49cfb1d6025b932cd9bb0ffe2050 /sys/geom/vinum
parentd4b28d5b0f1bf3314c3ebc09c453a58beb243478 (diff)
downloadsrc-64d62b289efb1763bcf92b8ed90d3e614ba0a61d.tar.gz
src-64d62b289efb1763bcf92b8ed90d3e614ba0a61d.zip
- 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.
Notes
Notes: svn path=/head/; revision=183546
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 a6bc71b18c54..91e9022917cf 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);