diff options
author | dfr <dfr@FreeBSD.org> | 1995-08-24 10:17:39 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1995-08-24 10:17:39 +0000 |
commit | 8bffcb6d1a3b548b22b61ebb466088117f22dbd4 (patch) | |
tree | d90bc1e43584830baedfd1de74bbb3f81e4cf79d /sys/nfsclient/nfs_vfsops.c | |
parent | 21ab8fe695e63021b17631de9b39b8302af39240 (diff) | |
download | FreeBSD-src-8bffcb6d1a3b548b22b61ebb466088117f22dbd4.zip FreeBSD-src-8bffcb6d1a3b548b22b61ebb466088117f22dbd4.tar.gz |
Add support for amd direct maps.
Reviewed by: Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index cc14093..2f94027 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_vfsops.c,v 1.17 1995/07/07 11:01:31 dfr Exp $ + * $Id: nfs_vfsops.c,v 1.18 1995/08/11 11:31:12 davidg Exp $ */ #include <sys/param.h> @@ -538,6 +538,7 @@ mountnfs(argp, mp, nam, pth, hst, vpp) register struct nfsmount *nmp; struct nfsnode *np; int error, maxio; + struct vattr attrs; if (mp->mnt_flag & MNT_UPDATE) { nmp = VFSTONFS(mp); @@ -689,6 +690,12 @@ mountnfs(argp, mp, nam, pth, hst, vpp) *vpp = NFSTOV(np); /* + * Get file attributes for the mountpoint. This has the side + * effect of filling in (*vpp)->v_type with the correct value. + */ + VOP_GETATTR(*vpp, &attrs, curproc->p_ucred, curproc); + + /* * Lose the lock but keep the ref. */ VOP_UNLOCK(*vpp); @@ -797,7 +804,6 @@ nfs_root(mp, vpp) return (error); vp = NFSTOV(np); VOP_UNLOCK(vp); - vp->v_type = VDIR; vp->v_flag = VROOT; *vpp = vp; return (0); |