Date: Fri, 25 May 2001 15:50:50 +0200 From: Poul-Henning Kamp <phk@freebsd.org> To: audit@freebsd.org, current@freebsd.org Subject: http://phk.freebsd.dk/patch/disk.patch Message-ID: <86455.990798650@critter>
next in thread | raw e-mail | index | archive | help
Edging closer to making major device numbers a pesky compatibility
detail and generally bring the new DEVFS based world order closer:
20010525 disk.patch
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()
Not for commit yet:
Panic if the cdevsw of a non make_dev()'ed dev_t is accessed.
Warn about drivers calling cdevsw_add()
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86455.990798650>
