aboutsummaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-05-03 13:42:50 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-05-03 13:42:50 +0000
commit1c337dcffe07b9f3ace03a473f86d5618e46b744 (patch)
tree44928ca8ab18810cd854d3183db9562e23cd4d86 /sys/nfs
parent9c3b234612e9570729c64fc8aacc31093b9ba013 (diff)
downloadsrc-1c337dcffe07b9f3ace03a473f86d5618e46b744.tar.gz
src-1c337dcffe07b9f3ace03a473f86d5618e46b744.zip
Make nfs roots (diskless) functional again. It may still not be correct,
but it is functional.
Notes
Notes: svn path=/head/; revision=25416
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 aee1ca29b652..7a14a5b68072 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);