diff options
author | lulf <lulf@FreeBSD.org> | 2008-10-02 10:01:05 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2008-10-02 10:01:05 +0000 |
commit | e37076e922529a2e36186f0029b5ecf50f20965b (patch) | |
tree | db149d6e94db49cfb1d6025b932cd9bb0ffe2050 /sys/geom/vinum | |
parent | f5703ce9b7658f8b6e36328ba758dc1a8ca92f0b (diff) | |
download | FreeBSD-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.c | 2 |
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); |