summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-03-12 08:29:44 +0000
committerpeter <peter@FreeBSD.org>1997-03-12 08:29:44 +0000
commitc81bf1e8afeb11c70b76cfecf2ec5db4532490c0 (patch)
treec9848d54ad27116b624cc06d5796b511ed572faf /usr.sbin
parent9694f2119fe8602bef0e4989a8217816fcc8a8dc (diff)
downloadFreeBSD-src-c81bf1e8afeb11c70b76cfecf2ec5db4532490c0.zip
FreeBSD-src-c81bf1e8afeb11c70b76cfecf2ec5db4532490c0.tar.gz
Make amd actually work instead of just compiling. The new Lite2 code
was not setting the version number in the nfs_args data to mount(2), so it was returning EFAULT. Perhaps the nfs_args version number was something we added at some point?
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/amd/config/misc-bsd44l.h1
-rw-r--r--usr.sbin/amd/config/os-bsd44.h6
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/amd/config/misc-bsd44l.h b/usr.sbin/amd/config/misc-bsd44l.h
index d252a97..e124c87 100644
--- a/usr.sbin/amd/config/misc-bsd44l.h
+++ b/usr.sbin/amd/config/misc-bsd44l.h
@@ -38,7 +38,6 @@
*
*/
-#define M_NEWTYPE 0
#define NFS_NPROCS 26
struct nfs_fattr;
union nfsfh;
diff --git a/usr.sbin/amd/config/os-bsd44.h b/usr.sbin/amd/config/os-bsd44.h
index 0701e9e..2d610b5 100644
--- a/usr.sbin/amd/config/os-bsd44.h
+++ b/usr.sbin/amd/config/os-bsd44.h
@@ -37,7 +37,7 @@
*
* @(#)os-bsd44.h 8.2 (Berkeley) 5/10/95
*
- * $Id: os-bsd44.h,v 5.2.2.1 1992/02/09 15:10:11 jsp beta $
+ * $Id: os-bsd44.h,v 1.8 1997/03/11 15:51:36 peter Exp $
*
* 4.4 BSD definitions for Amd (automounter)
*/
@@ -65,9 +65,10 @@
* This is the implementation release number, not
* the protocol revision number.
*/
-#define NFS_44
+#define NFS_4
#define HAS_TCP_NFS
#define NFSv3
+#define M_NEWTYPE 0
/*
* Does this OS have NDBM support?
@@ -108,6 +109,7 @@
#undef NFS_SA_DREF
#if BSD >= 199506
#define NFS_SA_DREF(dst, src) { \
+ (dst).version = NFS_ARGSVERSION; \
(dst).addr = (struct sockaddr *) (src); \
(dst).addrlen = sizeof(*src); \
(dst).sotype = SOCK_DGRAM; \
OpenPOWER on IntegriCloud