diff options
author | lulf <lulf@FreeBSD.org> | 2008-07-19 13:53:11 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2008-07-19 13:53:11 +0000 |
commit | d5f479c4b37e481a13dd61a673f66717f28e5da5 (patch) | |
tree | 5cbb1be933d09fa0ee65ada42efe7d20f0bbf102 /sys/geom | |
parent | 8fd5cf995c60144fc477529409ef77e98a0fd4bd (diff) | |
download | FreeBSD-src-d5f479c4b37e481a13dd61a673f66717f28e5da5.zip FreeBSD-src-d5f479c4b37e481a13dd61a673f66717f28e5da5.tar.gz |
- When renaming a drive, also set the drive name in the gvinum header.
PR: kern/125632
Approved by: pjd (mentor)
MFC after: 3 days
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/vinum/geom_vinum_rename.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/vinum/geom_vinum_rename.c b/sys/geom/vinum/geom_vinum_rename.c index 3d66fce..50501d2 100644 --- a/sys/geom/vinum/geom_vinum_rename.c +++ b/sys/geom/vinum/geom_vinum_rename.c @@ -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? */ |