mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-22 15:47:37 +00:00
- 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:
parent
d4b28d5b0f
commit
64d62b289e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183546
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user