]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create a general facility for making dev_t's depend on another
authorPoul-Henning Kamp <phk@FreeBSD.org>
Sat, 26 May 2001 08:27:58 +0000 (08:27 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Sat, 26 May 2001 08:27:58 +0000 (08:27 +0000)
commit3344c5a17e9322ec55ad4e3026e2a1e547b89938
treed64002caeb72adbdfba8967693335078ae1cb1ff
parentcaff01c2764f056e427ef4cd20a37357c7d4b3f2
Create a general facility for making dev_t's depend on another
dev_t.  The dev_depends(dev_t, dev_t) function is for tying them
to each other.

When destroy_dev() is called on a dev_t, all dev_t's depending
on it will also be destroyed (depth first order).

Rewrite the make_dev_alias() to use this dependency facility.

kern/subr_disk.c:
Make the disk mini-layer use dependencies to make sure all
relevant dev_t's are removed when the disk disappears.

Make the disk mini-layer precreate some magic sub devices
which the disk/slice/label code expects to be there.

kern/subr_disklabel.c:
Remove some now unneeded variables.

kern/subr_diskmbr.c:
Remove some ancient, commented out code.

kern/subr_diskslice.c:
Minor cleanup.  Use name from dev_t instead of dsname()
sys/fs/devfs/devfs_devs.c
sys/kern/kern_conf.c
sys/kern/subr_disk.c
sys/kern/subr_disklabel.c
sys/kern/subr_diskmbr.c
sys/kern/subr_diskslice.c
sys/sys/conf.h
sys/sys/linedisc.h