diff options
author | phk <phk@FreeBSD.org> | 1999-07-19 09:37:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-07-19 09:37:59 +0000 |
commit | f3c07181e3a6a7579dac59ab5d7db8dda4765baa (patch) | |
tree | 93eba791a50e5529a9aa49618551b2c4915a8d72 /sys/kern/vfs_subr.c | |
parent | 27ccb91085806a7605b66aa03baccf16a9b33394 (diff) | |
download | FreeBSD-src-f3c07181e3a6a7579dac59ab5d7db8dda4765baa.zip FreeBSD-src-f3c07181e3a6a7579dac59ab5d7db8dda4765baa.tar.gz |
[click] Now all dev_t's in the kernel have their char device major.
Only know casualy of this is swapinfo/pstat which should be fixes
the right way: Store the actual pathname in the kernel like mount
does. [Volounteers sought for this task]
The road map from here is roughly: expand struct specinfo into struct
based dev_t. Add dev_t registration facilities for device drivers and
start to use them.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index b9cf55b..7dd2110 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.210 1999/07/17 19:38:00 phk Exp $ + * $Id: vfs_subr.c,v 1.211 1999/07/18 14:30:37 phk Exp $ */ /* @@ -1244,11 +1244,13 @@ bdevvp(dev, vpp) return (error); } vp = nvp; - vp->v_type = VBLK; + /* dev2udev() results in a CDEV, so we need to cheat here. */ + vp->v_type = VCHR; if ((nvp = checkalias(vp, dev2udev(dev), (struct mount *)0)) != NULL) { vput(vp); vp = nvp; } + vp->v_type = VBLK; *vpp = vp; return (0); } |