- When renaming a drive, also set the drive name in the gvinum header.

PR:		kern/125632
Approved by:	pjd (mentor)
MFC after:	3 days
This commit is contained in:
lulf 2008-07-19 13:53:11 +00:00
parent 8fd5cf995c
commit d5f479c4b3

View File

@ -142,6 +142,7 @@ gv_rename_drive(struct gv_softc *sc, struct gctl_req *req, struct gv_drive *d, c
}
strncpy(d->name, newname, GV_MAXDRIVENAME);
strncpy(d->hdr->label.name, newname, GV_MAXDRIVENAME);
/* XXX can we rename providers here? */