mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
Give the closet-dev_t we hand to the diskdrivers a name.
This commit is contained in:
parent
855f8b26f2
commit
d4116af4f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97317
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue