Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/am-utils Merge changes to previous version and some Net...



details:   https://anonhg.NetBSD.org/src/rev/57689acb68aa
branches:  trunk
changeset: 499424:57689acb68aa
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Nov 20 00:02:56 2000 +0000

description:
Merge changes to previous version and some NetBSD tag differences.

diffstat:

 dist/am-utils/amd/amq_subr.c     |   5 +++--
 dist/am-utils/amd/srvr_nfs.c     |  16 ++++++++++++++--
 dist/am-utils/fsinfo/fsinfo.c    |   5 +++--
 dist/am-utils/include/amq_defs.h |   5 +++--
 dist/am-utils/libamu/wire.c      |  16 +++++++++++++---
 5 files changed, 36 insertions(+), 11 deletions(-)

diffs (139 lines):

diff -r 59139b95493f -r 57689acb68aa dist/am-utils/amd/amq_subr.c
--- a/dist/am-utils/amd/amq_subr.c      Sun Nov 19 23:42:08 2000 +0000
+++ b/dist/am-utils/amd/amq_subr.c      Mon Nov 20 00:02:56 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: amq_subr.c,v 1.2 2000/06/16 02:10:12 dogcow Exp $ */
+/*     $NetBSD: amq_subr.c,v 1.3 2000/11/20 00:02:56 wiz Exp $ */
+
 /*
  * Copyright (c) 1997-2000 Erez Zadok
  * Copyright (c) 1990 Jan-Simon Pendry
@@ -39,7 +40,7 @@
  *
  *      %W% (Berkeley) %G%
  *
- * Id: amq_subr.c,v 1.6 2000/01/12 16:44:16 ezk Exp 
+ * Id: amq_subr.c,v 1.6 2000/01/12 16:44:16 ezk Exp
  *
  */
 /*
diff -r 59139b95493f -r 57689acb68aa dist/am-utils/amd/srvr_nfs.c
--- a/dist/am-utils/amd/srvr_nfs.c      Sun Nov 19 23:42:08 2000 +0000
+++ b/dist/am-utils/amd/srvr_nfs.c      Mon Nov 20 00:02:56 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: srvr_nfs.c,v 1.2 2000/06/16 02:10:12 dogcow Exp $ */
+/*     $NetBSD: srvr_nfs.c,v 1.3 2000/11/20 00:02:56 wiz Exp $ */
+
 /*
  * Copyright (c) 1997-2000 Erez Zadok
  * Copyright (c) 1990 Jan-Simon Pendry
@@ -39,7 +40,7 @@
  *
  *      %W% (Berkeley) %G%
  *
- * Id: srvr_nfs.c,v 1.6 2000/01/12 16:44:26 ezk Exp 
+ * Id: srvr_nfs.c,v 1.7 2000/02/16 13:52:57 ezk Exp
  *
  */
 
@@ -673,6 +674,17 @@
   }
 #endif /* HAVE_NFS_NFSV2_H */
 
+  /* check if we globally overridden the NFS version/protocol */
+  if (gopt.nfs_vers) {
+    nfs_version = gopt.nfs_vers;
+    plog(XLOG_INFO, "find_nfs_srvr: force NFS version to %d",
+        (int) nfs_version);
+  }
+  if (gopt.nfs_proto) {
+    nfs_proto = gopt.nfs_proto;
+    plog(XLOG_INFO, "find_nfs_srvr: force NFS protocol to %s", nfs_proto);
+  }
+
   /*
    * lookup host address and canonical name
    */
diff -r 59139b95493f -r 57689acb68aa dist/am-utils/fsinfo/fsinfo.c
--- a/dist/am-utils/fsinfo/fsinfo.c     Sun Nov 19 23:42:08 2000 +0000
+++ b/dist/am-utils/fsinfo/fsinfo.c     Mon Nov 20 00:02:56 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: fsinfo.c,v 1.2 2000/06/16 02:10:13 dogcow Exp $ */
+/*     $NetBSD: fsinfo.c,v 1.3 2000/11/20 00:03:15 wiz Exp $   */
+
 /*
  * Copyright (c) 1997-2000 Erez Zadok
  * Copyright (c) 1989 Jan-Simon Pendry
@@ -39,7 +40,7 @@
  *
  *      %W% (Berkeley) %G%
  *
- * Id: fsinfo.c,v 1.5 2000/01/12 16:44:59 ezk Exp 
+ * Id: fsinfo.c,v 1.5 2000/01/12 16:44:59 ezk Exp
  *
  */
 
diff -r 59139b95493f -r 57689acb68aa dist/am-utils/include/amq_defs.h
--- a/dist/am-utils/include/amq_defs.h  Sun Nov 19 23:42:08 2000 +0000
+++ b/dist/am-utils/include/amq_defs.h  Mon Nov 20 00:02:56 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: amq_defs.h,v 1.2 2000/06/16 02:10:13 dogcow Exp $ */
+/*     $NetBSD: amq_defs.h,v 1.3 2000/11/20 00:03:16 wiz Exp $ */
+
 /*
  * Copyright (c) 1997-2000 Erez Zadok
  * Copyright (c) 1990 Jan-Simon Pendry
@@ -39,7 +40,7 @@
  *
  *      %W% (Berkeley) %G%
  *
- * Id: amq_defs.h,v 1.4 2000/01/12 16:45:05 ezk Exp 
+ * Id: amq_defs.h,v 1.4 2000/01/12 16:45:05 ezk Exp
  *
  */
 
diff -r 59139b95493f -r 57689acb68aa dist/am-utils/libamu/wire.c
--- a/dist/am-utils/libamu/wire.c       Sun Nov 19 23:42:08 2000 +0000
+++ b/dist/am-utils/libamu/wire.c       Mon Nov 20 00:02:56 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: wire.c,v 1.2 2000/06/16 02:10:13 dogcow Exp $ */
+/*     $NetBSD: wire.c,v 1.3 2000/11/20 00:03:16 wiz Exp $     */
+
 /*
  * Copyright (c) 1997-2000 Erez Zadok
  * Copyright (c) 1990 Jan-Simon Pendry
@@ -39,7 +40,7 @@
  *
  *      %W% (Berkeley) %G%
  *
- * Id: wire.c,v 1.8 2000/02/07 08:35:29 ezk Exp 
+ * Id: wire.c,v 1.8.2.2 2000/06/09 20:16:26 ezk Exp
  *
  */
 
@@ -61,7 +62,6 @@
 #include <am_defs.h>
 #include <amu.h>
 
-
 #ifdef HAVE_IFADDRS_H
 #include <ifaddrs.h>
 #endif /* HAVE_IFADDRS_H */
@@ -170,7 +170,17 @@
     u_char addr[4];
 
     if (irs_gen == NULL)
+#ifdef irs_irp_acc
+      /*
+       * bsdi4 added another argument to this function, without changing
+       * its name.  The irs_irp_acc is the one (hacky) distinguishing
+       * feature found in <irs.h> that can differentiate between bsdi3 and
+       * bsdi4.
+       */
       irs_gen = irs_gen_acc("", NULL);
+#else /* not irs_irp_acc */
+      irs_gen = irs_gen_acc("");
+#endif /* not irs_irp_acc */
     if (irs_gen && irs_nw == NULL)
       irs_nw = (*irs_gen->nw_map)(irs_gen);
     net = ntohl(address) & (mask = ntohl(netmask));



Home | Main Index | Thread Index | Old Index