Date: Sat, 26 May 2001 01:27:59 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/devfs devfs_devs.c src/sys/kern kern_conf.c subr_disk.c subr_disklabel.c subr_diskmbr.c subr_diskslice.c src/sys/sys conf.h Message-ID: <200105260827.f4Q8Rx389337@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2001/05/26 01:27:58 PDT
Modified files:
sys/fs/devfs devfs_devs.c
sys/kern kern_conf.c subr_disk.c subr_disklabel.c
subr_diskmbr.c subr_diskslice.c
sys/sys conf.h
Log:
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()
Revision Changes Path
1.15 +2 -2 src/sys/fs/devfs/devfs_devs.c
1.94 +21 -12 src/sys/kern/kern_conf.c
1.39 +18 -5 src/sys/kern/subr_disk.c
1.58 +1 -3 src/sys/kern/subr_disklabel.c
1.52 +1 -18 src/sys/kern/subr_diskmbr.c
1.95 +9 -8 src/sys/kern/subr_diskslice.c
1.129 +6 -2 src/sys/sys/conf.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105260827.f4Q8Rx389337>
