From a1f52760830870c470c59718e1353bf909b3bae2 Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 30 Aug 1995 17:24:15 +0000 Subject: Make nfs diskless work again. Reviewed by: John Hay --- sys/nfs/nfs_vfsops.c | 4 +++- sys/nfsclient/nfs_vfsops.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index 2f94027..dd09ab9 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_vfsops.c,v 1.18 1995/08/11 11:31:12 davidg Exp $ + * $Id: nfs_vfsops.c,v 1.19 1995/08/24 10:17:39 dfr Exp $ */ #include @@ -804,6 +804,8 @@ nfs_root(mp, vpp) return (error); vp = NFSTOV(np); VOP_UNLOCK(vp); + if (vp->v_type == VNON) + vp->v_type = VDIR; vp->v_flag = VROOT; *vpp = vp; return (0); diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 2f94027..dd09ab9 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.18 1995/08/11 11:31:12 davidg Exp $ + * $Id: nfs_vfsops.c,v 1.19 1995/08/24 10:17:39 dfr Exp $ */ #include @@ -804,6 +804,8 @@ nfs_root(mp, vpp) return (error); vp = NFSTOV(np); VOP_UNLOCK(vp); + if (vp->v_type == VNON) + vp->v_type = VDIR; vp->v_flag = VROOT; *vpp = vp; return (0); -- cgit v1.1