diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-05-03 13:42:50 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-05-03 13:42:50 +0000 |
commit | 1c337dcffe07b9f3ace03a473f86d5618e46b744 (patch) | |
tree | 44928ca8ab18810cd854d3183db9562e23cd4d86 /sys | |
parent | 9c3b234612e9570729c64fc8aacc31093b9ba013 (diff) | |
download | src-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')
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 6 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 6 |
2 files changed, 10 insertions, 2 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); diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index aee1ca29b652..7a14a5b68072 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/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); |