diff options
author | phk <phk@FreeBSD.org> | 2001-05-26 08:27:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-05-26 08:27:58 +0000 |
commit | 2072a71f0e5186928f3cb8cfac61fe8199029442 (patch) | |
tree | b40e6ace9e559eda88dc8e88344909bffdde59e4 /sys/kern/subr_disklabel.c | |
parent | 32df247d021a07cb6a2425587a871d41f24660e6 (diff) | |
download | FreeBSD-src-2072a71f0e5186928f3cb8cfac61fe8199029442.zip FreeBSD-src-2072a71f0e5186928f3cb8cfac61fe8199029442.tar.gz |
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()
Diffstat (limited to 'sys/kern/subr_disklabel.c')
-rw-r--r-- | sys/kern/subr_disklabel.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c index 3a9ad24..5498bf2 100644 --- a/sys/kern/subr_disklabel.c +++ b/sys/kern/subr_disklabel.c @@ -352,8 +352,6 @@ diskerr(bp, what, blkdone, lp) int blkdone; register struct disklabel *lp; { - int unit = dkunit(bp->bio_dev); - int slice = dkslice(bp->bio_dev); int part = dkpart(bp->bio_dev); char partname[2]; char *sname; |