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

This commit is contained in:
Poul-Henning Kamp 2002-05-26 17:35:14 +00:00
parent 855f8b26f2
commit d4116af4f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97317

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;