diff options
author | julian <julian@FreeBSD.org> | 1996-11-21 07:19:00 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1996-11-21 07:19:00 +0000 |
commit | 534a4e360d9682e1baa92ccad9b132c156d91d99 (patch) | |
tree | 0c3c419527ac181f413e927a8da1882a980be7f0 /sys/miscfs/devfs/devfs_vnops.c | |
parent | c7dd0fe0974df032d23790e95e60b2b1c42b84dd (diff) | |
download | FreeBSD-src-534a4e360d9682e1baa92ccad9b132c156d91d99.zip FreeBSD-src-534a4e360d9682e1baa92ccad9b132c156d91d99.tar.gz |
changes to make devfs more 'normal'
also fixes a bug I've been chasing for a LONG TIME,
due to the fact that spec_bwrite is a NOP and I didn't realise it..
old symptom:
mount -t devfs devfs /mnt
mount /mnt/wd0e /mnt/mnt2
umount /mnt2 <process hangs>
there are some pretty large structural differences internal to devfs
but outwards it should look the same.
I have not yet tested extensively but will do so and fix 3 warnings tomorrow.
Diffstat (limited to 'sys/miscfs/devfs/devfs_vnops.c')
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index 5ed7281..dae07c5 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -1,7 +1,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.31 1996/10/17 22:47:23 julian Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.32 1996/10/28 11:36:06 phk Exp $ * * symlinks can wait 'til later. */ @@ -1348,7 +1348,8 @@ DBPRINT(("symlink\n")); by.Slnk.name = ap->a_target; by.Slnk.namelen = strlen(ap->a_target); - dev_add_entry( ap->a_cnp->cn_nameptr, dnp, DEV_SLNK, &by, &nm_p); + dev_add_entry( ap->a_cnp->cn_nameptr, dnp, DEV_SLNK, &by, + NULL, NULL, &nm_p); if(err = devfs_dntovn(nm_p->dnp,&vp) ) { vput(ap->a_dvp); return err; @@ -1892,7 +1893,7 @@ static struct vnodeopv_entry_desc dev_spec_vnodeop_entries[] = { { &vop_vfree_desc, (vop_t *)spec_vfree }, /* vfree */ { &vop_truncate_desc, (vop_t *)spec_truncate }, /* truncate */ { &vop_update_desc, (vop_t *)spec_update }, /* update */ - { &vop_bwrite_desc, (vop_t *)spec_bwrite }, /* bwrite */ + { &vop_bwrite_desc, (vop_t *)vn_bwrite }, /* bwrite */ { NULL, NULL } }; static struct vnodeopv_desc dev_spec_vnodeop_opv_desc = |