summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-05-26 17:35:14 +0000
committerphk <phk@FreeBSD.org>2002-05-26 17:35:14 +0000
commit571d9aa442fe4e3fe75211f2d92c2a3ae1176f88 (patch)
tree2d4ede58627d9ede8457ffd83a479e2e90483893 /sys/geom/geom_disk.c
parent8bb89b7b0cc9111bd5a11d563b0737e0513fce37 (diff)
downloadFreeBSD-src-571d9aa442fe4e3fe75211f2d92c2a3ae1176f88.zip
FreeBSD-src-571d9aa442fe4e3fe75211f2d92c2a3ae1176f88.tar.gz
Give the closet-dev_t we hand to the diskdrivers a name.
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index b843023..846694d 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -210,6 +210,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct
dev->si_udev = dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART);
g_topology_lock();
gp = g_new_geomf(&g_disk_class, "%s%d", cdevsw->d_name, unit);
+ strcpy(dev->si_name, gp->name);
gp->start = g_disk_start;
gp->access = g_disk_access;
gp->softc = dp;
OpenPOWER on IntegriCloud