- 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.
This commit is contained in:
Ulf Lilleengen 2008-10-02 10:01:05 +00:00
parent d4b28d5b0f
commit 64d62b289e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183546

View File

@ -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);