mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
- 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:
parent
51c0f94ed7
commit
14e96b45e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180612
@ -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? */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user