diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-08-20 21:34:39 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-08-20 21:34:39 +0000 |
commit | 3f54a085a603b050163611ce23972ee8de7636f1 (patch) | |
tree | 4a236ab334d49bc97f4741cc058e0ae301786c02 /sys/ufs | |
parent | e0faad6850ddd7593f869132fc7647c1576e0f6d (diff) | |
download | src-3f54a085a603b050163611ce23972ee8de7636f1.tar.gz src-3f54a085a603b050163611ce23972ee8de7636f1.zip |
Remove all traces of Julians DEVFS (incl from kern/subr_diskslice.c)
Remove old DEVFS support fields from dev_t.
Make uid, gid & mode members of dev_t and set them in make_dev().
Use correct uid, gid & mode in make_dev in disk minilayer.
Add support for registering alias names for a dev_t using the
new function make_dev_alias(). These will show up as symlinks
in DEVFS.
Use makedev() rather than make_dev() for MFSs magic devices to prevent
DEVFS from noticing this abuse.
Add a field for DEVFS inode number in dev_t.
Add new DEVFS in fs/devfs.
Add devfs cloning to:
disk minilayer (ie: ad(4), sd(4), cd(4) etc etc)
md(4), tun(4), bpf(4), fd(4)
If DEVFS add -d flag to /sbin/inits args to make it mount devfs.
Add commented out DEVFS to GENERIC
Notes
Notes:
svn path=/head/; revision=64880
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 429f029db424..fb15f4d3020b 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -244,7 +244,8 @@ mfs_mount(mp, path, data, ndp, p) goto error_1; } devvp->v_type = VCHR; - dev = make_dev(&mfs_cdevsw, mfs_minor, 0, 0, 0, "MFS%d", mfs_minor); + dev = makedev(mfs_cdevsw.d_maj, mfs_minor); + dev->si_devsw = &mfs_cdevsw; /* It is not clear that these will get initialized otherwise */ dev->si_bsize_phys = DEV_BSIZE; dev->si_iosize_max = DFLTPHYS; |