fix UFS vs 'real' fs type mixups

This commit is contained in:
cgd 1994-01-05 11:07:31 +00:00
parent 1e5c7f966b
commit 9d1babb688
3 changed files with 6 additions and 10 deletions

View File

@ -37,7 +37,7 @@
* From:
* Id: fdesc_vfsops.c,v 4.1 1993/12/17 10:47:45 jsp Rel
*
* $Id: fdesc_vfsops.c,v 1.6 1994/01/05 09:01:00 cgd Exp $
* $Id: fdesc_vfsops.c,v 1.7 1994/01/05 11:07:31 cgd Exp $
*/
/*
@ -97,7 +97,7 @@ fdesc_mount(mp, path, data, ndp, p)
return (error);
MALLOC(fmp, struct fdescmount *, sizeof(struct fdescmount),
M_UFSMNT, M_WAITOK); /* XXX */
M_MISCFSMNT, M_WAITOK);
rvp->v_type = VDIR;
rvp->v_flag |= VROOT;
VTOFDESC(rvp)->fd_type = Froot;
@ -184,7 +184,7 @@ fdesc_unmount(mp, mntflags, p)
/*
* Finally, throw away the fdescmount structure
*/
free(mp->mnt_data, M_UFSMNT); /* XXX */
free(mp->mnt_data, M_MISCFSMNT);
mp->mnt_data = 0;
return 0;
}

View File

@ -37,7 +37,7 @@
* From:
* Id: fdesc_vnops.c,v 4.1 1993/12/17 10:47:45 jsp Rel
*
* $Id: fdesc_vnops.c,v 1.8 1994/01/05 09:01:02 cgd Exp $
* $Id: fdesc_vnops.c,v 1.9 1994/01/05 11:07:44 cgd Exp $
*/
/*
@ -106,7 +106,7 @@ loop:
}
fdescvplock |= FDL_LOCKED;
error = getnewvnode(VT_UFS, mp, &fdesc_vnodeops, vpp);
error = getnewvnode(VT_FDESC, mp, &fdesc_vnodeops, vpp);
if (error)
goto out;
if (nvpp)

View File

@ -37,7 +37,7 @@
* From:
* Id: procfs.h,v 4.1 1993/12/17 10:47:45 jsp Rel
*
* $Id: procfs.h,v 1.1 1994/01/05 07:51:12 cgd Exp $
* $Id: procfs.h,v 1.2 1994/01/05 11:08:07 cgd Exp $
*/
/*
@ -76,10 +76,6 @@ struct pfsnode {
*/
#ifdef KERNEL
#ifndef VT_PROCFS
#define VT_PROCFS VT_UFS
#endif
#define NDEQ(ndp, s, len) \
((ndp)->ni_namelen == (len) && \
(bcmp((s), (ndp)->ni_ptr, (len)) == 0))