Give the closet-dev_t we hand to the diskdrivers a name.

This commit is contained in:
phk 2002-05-26 17:35:14 +00:00
parent 8bb89b7b0c
commit 571d9aa442

View File

@ -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;