From owner-freebsd-audit Fri May 25 6:51: 4 2001 Delivered-To: freebsd-audit@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.253]) by hub.freebsd.org (Postfix) with ESMTP id ADEEC37B422; Fri, 25 May 2001 06:50:58 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4PDoom86457; Fri, 25 May 2001 15:50:50 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: audit@freebsd.org, current@freebsd.org Subject: http://phk.freebsd.dk/patch/disk.patch From: Poul-Henning Kamp Date: Fri, 25 May 2001 15:50:50 +0200 Message-ID: <86455.990798650@critter> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-audit" in the body of the message