From 64d62b289efb1763bcf92b8ed90d3e614ba0a61d Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 2 Oct 2008 10:01:05 +0000 Subject: [PATCH] - 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. --- sys/geom/vinum/geom_vinum_rm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);