1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

1/ by default make all versions of the same device get the same vnode.

2/ Show the dummy mount in the mount list. it cannot be reached (that I know of)
	but puting it there, means that disks mounted from devfs will have their	things such as the superblock and the bitmaps, synced to disk :)
This commit is contained in:
Julian Elischer 1997-10-16 07:28:50 +00:00
parent 2a5e970deb
commit 2daae425f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30464
2 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,8 @@
#define SPLIT_DEVS 1
/*#define SPLIT_DEVS 1*/
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.45 1997/10/12 22:27:11 julian Exp $
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.46 1997/10/16 06:29:27 julian Exp $
*/
#include "opt_devfs.h"

View File

@ -1,7 +1,7 @@
/*-
* Written by Julian Elischer (julian@DIALix.oz.au)
*
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.22 1997/10/12 20:24:35 phk Exp $
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.23 1997/10/16 06:29:27 julian Exp $
*
*
*/
@ -36,7 +36,6 @@ devfs_init(struct vfsconf *vfsp)
* we could almost use vfs_rootmountalloc() to do this.
*/
lockinit(&mp->mnt_lock, PVFS, "vfslock", 0, 0);
(void)vfs_busy(mp, LK_NOWAIT, 0, NULL);
mp->mnt_op = vfsp->vfc_vfsops;
mp->mnt_vfc = vfsp;
mp->mnt_stat.f_type = vfsp->vfc_typenum;
@ -46,7 +45,7 @@ devfs_init(struct vfsconf *vfsp)
/* Mark a reference for the "invisible" blueprint mount */
mp->mnt_vfc->vfc_refcount++;
/*CIRCLEQ_INSERT_TAIL(&mountlist, mp, mnt_list);*/
CIRCLEQ_INSERT_TAIL(&mountlist, mp, mnt_list);
printf("DEVFS: ready to run\n");
return 0; /*XXX*/
@ -95,7 +94,7 @@ DBPRINT(("mount "));
return (ENOMEM);
bzero(devfs_mp_p,sizeof(*devfs_mp_p));
devfs_mp_p->mount = mp;
mp->mnt_data = devfs_mp_p;
mp->mnt_data = (void *)devfs_mp_p;
/*-
* Fill out some fields