summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-05-03 13:42:50 +0000
committerphk <phk@FreeBSD.org>1997-05-03 13:42:50 +0000
commitd4a32b53a4f4af15893ae40e53ab9c12647f1f5c (patch)
treeb90db7ccceac5bd0fc5bcc1bbb83db8c1a97bd03 /sys/nfs
parent5cb4d1de3bda0ba6651b17f518f5316e9a0bf3fa (diff)
downloadFreeBSD-src-d4a32b53a4f4af15893ae40e53ab9c12647f1f5c.zip
FreeBSD-src-d4a32b53a4f4af15893ae40e53ab9c12647f1f5c.tar.gz
Make nfs roots (diskless) functional again. It may still not be correct,
but it is functional.
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vfsops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index aee1ca2..7a14a5b 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
- * $Id: nfs_vfsops.c,v 1.37 1997/04/04 17:49:30 dfr Exp $
+ * $Id: nfs_vfsops.c,v 1.38 1997/04/22 17:38:01 dfr Exp $
*/
#include <sys/param.h>
@@ -577,6 +577,10 @@ nfs_mount(mp, path, data, ndp, p)
u_int len;
u_char nfh[NFSX_V3FHMAX];
+ if (path == NULL) {
+ nfs_mountroot();
+ return (0);
+ }
error = copyin(data, (caddr_t)&args, sizeof (struct nfs_args));
if (error)
return (error);
OpenPOWER on IntegriCloud