checkpoint for network tape
authorJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Mon, 13 May 1991 07:00:51 +0000 (23:00 -0800)
committerJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Mon, 13 May 1991 07:00:51 +0000 (23:00 -0800)
SCCS-vsn: usr.sbin/amd/amd/amd.c 5.3
SCCS-vsn: usr.sbin/amd/amd/nfs_start.c 5.3
SCCS-vsn: usr.sbin/amd/amd/nfs_subr.c 5.3
SCCS-vsn: usr.sbin/amd/amd/clock.c 5.3
SCCS-vsn: usr.sbin/amd/amd/efs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/amq_subr.c 5.3
SCCS-vsn: usr.sbin/amd/amd/ifs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/host_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/map.c 5.3
SCCS-vsn: usr.sbin/amd/amd/get_args.c 5.3
SCCS-vsn: usr.sbin/amd/amd/info_hes.c 5.3
SCCS-vsn: usr.sbin/amd/amd/info_ndbm.c 5.3
SCCS-vsn: usr.sbin/amd/amd/info_nis.c 5.3
SCCS-vsn: usr.sbin/amd/amd/info_passwd.c 5.3
SCCS-vsn: usr.sbin/amd/amd/mapc.c 5.3
SCCS-vsn: usr.sbin/amd/amd/info_file.c 5.3
SCCS-vsn: usr.sbin/amd/amd/mntfs.c 5.3
SCCS-vsn: usr.sbin/amd/amd/mtab.c 5.3
SCCS-vsn: usr.sbin/amd/amd/misc_rpc.c 5.3
SCCS-vsn: usr.sbin/amd/amd/nfs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/mount_fs.c 5.3
SCCS-vsn: usr.sbin/amd/amd/opts.c 5.3
SCCS-vsn: usr.sbin/amd/amd/pfs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/restart.c 5.3
SCCS-vsn: usr.sbin/amd/amd/amd.8 5.4
SCCS-vsn: usr.sbin/amd/amd/rpc_fwd.c 5.3
SCCS-vsn: usr.sbin/amd/amd/sched.c 5.3
SCCS-vsn: usr.sbin/amd/amd/sfs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/ufs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/srvr_afs.c 5.3
SCCS-vsn: usr.sbin/amd/amd/srvr_nfs.c 5.3
SCCS-vsn: usr.sbin/amd/amd/util.c 5.3
SCCS-vsn: usr.sbin/amd/amd/umount_fs.c 5.3
SCCS-vsn: usr.sbin/amd/amd/info_union.c 5.3
SCCS-vsn: usr.sbin/amd/amd/nfsx_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/am_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/afs_ops.c 5.3
SCCS-vsn: usr.sbin/amd/amd/xutil.c 5.3
SCCS-vsn: usr.sbin/amd/amd/wire.c 5.3
SCCS-vsn: usr.sbin/amd/amd/Makefile 5.4
SCCS-vsn: usr.sbin/amd/amd/ChangeLog 1.3
SCCS-vsn: usr.sbin/amd/doc/amdref.cps 1.2
SCCS-vsn: usr.sbin/amd/doc/amdref.fns 1.2
SCCS-vsn: usr.sbin/amd/doc/amdref.kys 1.2
SCCS-vsn: usr.sbin/amd/doc/amdref.pgs 1.2
SCCS-vsn: usr.sbin/amd/doc/amdref.texinfo 1.3
SCCS-vsn: usr.sbin/amd/doc/amdref.tps 1.2
SCCS-vsn: usr.sbin/amd/doc/amdref.vrs 1.2
SCCS-vsn: usr.sbin/amd/doc/texinfo.tex 1.2
SCCS-vsn: usr.sbin/amd/doc/Makefile 5.3
SCCS-vsn: usr.sbin/amd/rpcx/amq_svc.c 5.3
SCCS-vsn: usr.sbin/amd/rpcx/amq_xdr.c 5.3
SCCS-vsn: usr.sbin/amd/rpcx/amq_clnt.c 5.3
SCCS-vsn: usr.sbin/amd/rpcx/mount.h 5.3
SCCS-vsn: usr.sbin/amd/rpcx/mount_xdr.c 5.3
SCCS-vsn: usr.sbin/amd/rpcx/nfs_prot.h 5.3
SCCS-vsn: usr.sbin/amd/rpcx/nfs_prot_svc.c 5.3
SCCS-vsn: usr.sbin/amd/rpcx/nfs_prot_xdr.c 5.3
SCCS-vsn: usr.sbin/amd/rpcx/amq.x 5.3
SCCS-vsn: usr.sbin/amd/rpcx/amq.h 5.3
SCCS-vsn: usr.sbin/amd/config/newvers.sh 5.4
SCCS-vsn: usr.sbin/amd/config/Makefile.hpux 5.3
SCCS-vsn: usr.sbin/amd/config/Makefile.irix 5.3
SCCS-vsn: usr.sbin/amd/config/Makefile.config 5.3
SCCS-vsn: usr.sbin/amd/config/Makefile.bsd44 5.3
SCCS-vsn: usr.sbin/amd/config/os-type 5.4
SCCS-vsn: usr.sbin/amd/config/mount_aix.c 5.3
SCCS-vsn: usr.sbin/amd/config/mtab_bsd.c 5.3
SCCS-vsn: usr.sbin/amd/config/mtab_file.c 5.3
SCCS-vsn: usr.sbin/amd/config/mtab_ultrix.c 5.3
SCCS-vsn: usr.sbin/amd/config/os-acis43.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-aix3.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-aux.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-bsd44.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-concentrix.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-convex.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-defaults.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-dgux.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-hcx.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-hpux.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-irix.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-riscix.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-sos3.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-sos4.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-u2_2.h 5.3
SCCS-vsn: usr.sbin/amd/config/RELEASE 5.3
SCCS-vsn: usr.sbin/amd/config/os-u3_0.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-u4_0.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-utek.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-xinu43.h 5.3
SCCS-vsn: usr.sbin/amd/config/Configure 5.3
SCCS-vsn: usr.sbin/amd/config/arch 5.3
SCCS-vsn: usr.sbin/amd/config/Makefile.aix3 5.3
SCCS-vsn: usr.sbin/amd/config/misc-next.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-fpx4.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-hlh42.h 5.3
SCCS-vsn: usr.sbin/amd/config/os-next.h 5.4
SCCS-vsn: usr.sbin/amd/config/os-pyrOSx.h 5.3
SCCS-vsn: usr.sbin/amd/config/misc-irix.h 5.3
SCCS-vsn: usr.sbin/amd/config/misc-ultrix.h 5.3
SCCS-vsn: usr.sbin/amd/config/mount_irix.c 5.3
SCCS-vsn: usr.sbin/amd/config/os-umax43.h 5.3
SCCS-vsn: usr.sbin/amd/config/mtab_aix.c 5.3
SCCS-vsn: usr.sbin/amd/config/os-utx32.h 5.3
SCCS-vsn: usr.sbin/amd/config/misc-hpux.h 5.3
SCCS-vsn: usr.sbin/amd/config/misc-aix3.h 5.3
SCCS-vsn: usr.sbin/amd/amq/amq.8 5.5
SCCS-vsn: usr.sbin/amd/amq/amq.c 5.3
SCCS-vsn: usr.sbin/amd/amq/Makefile 5.4
SCCS-vsn: usr.sbin/amd/fsinfo/fsi_dict.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsi_gram.y 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsi_lex.l 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsi_data.h 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsi_util.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsinfo.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsinfo.h 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/wr_atab.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/wr_bparam.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/wr_dumpset.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/wr_exportfs.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/wr_fstab.c 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/Makefile 5.3
SCCS-vsn: usr.sbin/amd/fsinfo/fsi_analyze.c 5.3
SCCS-vsn: usr.sbin/amd/mk-amd-map/Makefile 5.4
SCCS-vsn: usr.sbin/amd/mk-amd-map/mk-amd-map.c 5.4
SCCS-vsn: usr.sbin/amd/text/amd.start.ex 5.3
SCCS-vsn: usr.sbin/amd/text/README 1.3
SCCS-vsn: usr.sbin/amd/text/COPYRIGHT 1.4
SCCS-vsn: usr.sbin/amd/text/INSTALL 1.3
SCCS-vsn: usr.sbin/amd/include/config.h 5.2
SCCS-vsn: usr.sbin/amd/include/uwait.h 5.3
SCCS-vsn: usr.sbin/amd/include/re.h 5.2
SCCS-vsn: usr.sbin/amd/include/remagic.h 5.2
SCCS-vsn: usr.sbin/amd/include/am.h 5.3
SCCS-vsn: usr.sbin/amd/include/fstype.h 5.3
SCCS-vsn: usr.sbin/amd/maps/a_net 5.3
SCCS-vsn: usr.sbin/amd/maps/a_master 5.3

124 files changed:
usr/src/usr.sbin/amd/amd/ChangeLog
usr/src/usr.sbin/amd/amd/Makefile
usr/src/usr.sbin/amd/amd/afs_ops.c
usr/src/usr.sbin/amd/amd/am_ops.c
usr/src/usr.sbin/amd/amd/amd.8
usr/src/usr.sbin/amd/amd/amd.c
usr/src/usr.sbin/amd/amd/amq_subr.c
usr/src/usr.sbin/amd/amd/clock.c
usr/src/usr.sbin/amd/amd/efs_ops.c
usr/src/usr.sbin/amd/amd/get_args.c
usr/src/usr.sbin/amd/amd/host_ops.c
usr/src/usr.sbin/amd/amd/ifs_ops.c
usr/src/usr.sbin/amd/amd/info_file.c
usr/src/usr.sbin/amd/amd/info_hes.c
usr/src/usr.sbin/amd/amd/info_ndbm.c
usr/src/usr.sbin/amd/amd/info_nis.c
usr/src/usr.sbin/amd/amd/info_passwd.c
usr/src/usr.sbin/amd/amd/info_union.c
usr/src/usr.sbin/amd/amd/map.c
usr/src/usr.sbin/amd/amd/mapc.c
usr/src/usr.sbin/amd/amd/misc_rpc.c
usr/src/usr.sbin/amd/amd/mntfs.c
usr/src/usr.sbin/amd/amd/mount_fs.c
usr/src/usr.sbin/amd/amd/mtab.c
usr/src/usr.sbin/amd/amd/nfs_ops.c
usr/src/usr.sbin/amd/amd/nfs_start.c
usr/src/usr.sbin/amd/amd/nfs_subr.c
usr/src/usr.sbin/amd/amd/nfsx_ops.c
usr/src/usr.sbin/amd/amd/opts.c
usr/src/usr.sbin/amd/amd/pfs_ops.c
usr/src/usr.sbin/amd/amd/restart.c
usr/src/usr.sbin/amd/amd/rpc_fwd.c
usr/src/usr.sbin/amd/amd/sched.c
usr/src/usr.sbin/amd/amd/sfs_ops.c
usr/src/usr.sbin/amd/amd/srvr_afs.c
usr/src/usr.sbin/amd/amd/srvr_nfs.c
usr/src/usr.sbin/amd/amd/ufs_ops.c
usr/src/usr.sbin/amd/amd/umount_fs.c
usr/src/usr.sbin/amd/amd/util.c
usr/src/usr.sbin/amd/amd/wire.c
usr/src/usr.sbin/amd/amd/xutil.c
usr/src/usr.sbin/amd/amq/Makefile
usr/src/usr.sbin/amd/amq/amq.8
usr/src/usr.sbin/amd/amq/amq.c
usr/src/usr.sbin/amd/config/Configure
usr/src/usr.sbin/amd/config/Makefile.aix3
usr/src/usr.sbin/amd/config/Makefile.bsd44
usr/src/usr.sbin/amd/config/Makefile.config
usr/src/usr.sbin/amd/config/Makefile.hpux
usr/src/usr.sbin/amd/config/Makefile.irix
usr/src/usr.sbin/amd/config/RELEASE
usr/src/usr.sbin/amd/config/arch
usr/src/usr.sbin/amd/config/misc-aix3.h
usr/src/usr.sbin/amd/config/misc-hpux.h
usr/src/usr.sbin/amd/config/misc-irix.h
usr/src/usr.sbin/amd/config/misc-next.h
usr/src/usr.sbin/amd/config/misc-ultrix.h
usr/src/usr.sbin/amd/config/mount_aix.c
usr/src/usr.sbin/amd/config/mount_irix.c
usr/src/usr.sbin/amd/config/mtab_aix.c
usr/src/usr.sbin/amd/config/mtab_bsd.c
usr/src/usr.sbin/amd/config/mtab_file.c
usr/src/usr.sbin/amd/config/mtab_ultrix.c
usr/src/usr.sbin/amd/config/newvers.sh
usr/src/usr.sbin/amd/config/os-acis43.h
usr/src/usr.sbin/amd/config/os-aix3.h
usr/src/usr.sbin/amd/config/os-aux.h
usr/src/usr.sbin/amd/config/os-bsd44.h
usr/src/usr.sbin/amd/config/os-concentrix.h
usr/src/usr.sbin/amd/config/os-convex.h
usr/src/usr.sbin/amd/config/os-defaults.h
usr/src/usr.sbin/amd/config/os-dgux.h
usr/src/usr.sbin/amd/config/os-fpx4.h
usr/src/usr.sbin/amd/config/os-hcx.h
usr/src/usr.sbin/amd/config/os-hlh42.h
usr/src/usr.sbin/amd/config/os-hpux.h
usr/src/usr.sbin/amd/config/os-irix.h
usr/src/usr.sbin/amd/config/os-next.h
usr/src/usr.sbin/amd/config/os-pyrOSx.h
usr/src/usr.sbin/amd/config/os-riscix.h
usr/src/usr.sbin/amd/config/os-sos3.h
usr/src/usr.sbin/amd/config/os-sos4.h
usr/src/usr.sbin/amd/config/os-type
usr/src/usr.sbin/amd/config/os-u2_2.h
usr/src/usr.sbin/amd/config/os-u3_0.h
usr/src/usr.sbin/amd/config/os-u4_0.h
usr/src/usr.sbin/amd/config/os-umax43.h
usr/src/usr.sbin/amd/config/os-utek.h
usr/src/usr.sbin/amd/config/os-utx32.h
usr/src/usr.sbin/amd/config/os-xinu43.h
usr/src/usr.sbin/amd/doc/Makefile
usr/src/usr.sbin/amd/doc/amdref.texinfo
usr/src/usr.sbin/amd/fsinfo/Makefile
usr/src/usr.sbin/amd/fsinfo/fsi_analyze.c
usr/src/usr.sbin/amd/fsinfo/fsi_data.h
usr/src/usr.sbin/amd/fsinfo/fsi_dict.c
usr/src/usr.sbin/amd/fsinfo/fsi_gram.y
usr/src/usr.sbin/amd/fsinfo/fsi_lex.l
usr/src/usr.sbin/amd/fsinfo/fsi_util.c
usr/src/usr.sbin/amd/fsinfo/fsinfo.c
usr/src/usr.sbin/amd/fsinfo/fsinfo.h
usr/src/usr.sbin/amd/fsinfo/wr_atab.c
usr/src/usr.sbin/amd/fsinfo/wr_bparam.c
usr/src/usr.sbin/amd/fsinfo/wr_dumpset.c
usr/src/usr.sbin/amd/fsinfo/wr_exportfs.c
usr/src/usr.sbin/amd/fsinfo/wr_fstab.c
usr/src/usr.sbin/amd/include/am.h
usr/src/usr.sbin/amd/include/config.h
usr/src/usr.sbin/amd/include/fstype.h
usr/src/usr.sbin/amd/include/uwait.h
usr/src/usr.sbin/amd/mk-amd-map/Makefile
usr/src/usr.sbin/amd/mk-amd-map/mk-amd-map.c
usr/src/usr.sbin/amd/rpcx/amq.h
usr/src/usr.sbin/amd/rpcx/amq.x
usr/src/usr.sbin/amd/rpcx/amq_clnt.c
usr/src/usr.sbin/amd/rpcx/amq_svc.c
usr/src/usr.sbin/amd/rpcx/amq_xdr.c
usr/src/usr.sbin/amd/rpcx/mount.h
usr/src/usr.sbin/amd/rpcx/mount_xdr.c
usr/src/usr.sbin/amd/rpcx/nfs_prot.h
usr/src/usr.sbin/amd/rpcx/nfs_prot_svc.c
usr/src/usr.sbin/amd/rpcx/nfs_prot_xdr.c
usr/src/usr.sbin/amd/text/COPYRIGHT
usr/src/usr.sbin/amd/text/amd.start.ex

index c3d5164..214c8fc 100644 (file)
@@ -1,3 +1,71 @@
+Tue May  7 22:30:00 1991  Jan-Simon Pendry  (jsp at achilles)
+
+       * Checkpoint for Berkeley network tape II.
+
+Sat May  4 22:06:24 1991  Jan-Simon Pendry  (jsp at achilles)
+
+       * New Berkeley Copyright.
+
+       * (mntfs.c) more short-circuiting in realloc_mntfs().
+
+       * (host_ops.c) increase RPC timeout to 20 seconds.
+
+       * (info_hes.c) now supports lookup in other domains.
+
+       * (srvr_nfs.c) call map_flush_srvr whenever a server comes up.
+
+       * (map.c) added hook to flush hung file servers.
+
+       * (wire.c) make loop step more portable.
+
+       * (util.c) fix for compiling on rios.
+
+Sun Apr 21 21:54:52 1991  Jan-Simon Pendry  (jsp at forest)
+
+       * (util.c) ignore EINVAL returned by rmdir().
+
+       * (am_ops.c, afs_ops.c) remove SunOS4 map compat code.
+
+       * (nfsx_ops.c) don't clear MFF_MOUNTING until finished mount attempts.
+
+       * (nfsx_ops.c) don't call sched_task more than once.
+
+       * (afs_ops.c) don't call afs_bgmount if a mount is in progress.
+
+       * (info_file.c) handle case where map ends with \
+
+Fri Apr  5 19:23:50 1991  Jan-Simon Pendry  (jsp at forest)
+
+       * Release 5.3 Alpha 12.
+
+       * (util.c) don't clear MFF_MOUNTING flag if mount is still in progress.
+
+       * (srvr_nfs.c) calls make_nfs_auth() as required.
+
+       * (host_ops.c) calls make_nfs_auth() as required.
+       
+       * (afs_ops.c) allow foreground mounts to return pending.  This is
+       used by nfsx_ops.c.
+
+       * (mapc.c) uses new RE_HDR abstraction coping with systems which
+       already have the re package installed.
+
+       * (nfsx_ops.c) automatically generates a suitable sublink to make
+       things work.  Remounts now work correctly, but are done in the
+       foreground so there is a possibility that things may hang.  This is
+       too hard to do differently.
+
+Wed Apr  3 17:49:05 1991  Jan-Simon Pendry  (jsp at achilles)
+
+       * (nfs_ops.c) HAS_NFS_QUALIFIED_NAME is a new compile time switch
+       which puts a qualified domain name into the RPC authentication
+       instead of using the default value.  Abstracted this out into new
+       routine called make_nfs_auth().
+
+       * (afs_ops.c) fixed bug which caused spurious ENOENTs to appear.
+       this was caused by some code motion which also got slightly
+       altered int the process.  moral: don't make two changes at once.
+
 Sun Mar 17 12:05:27 1991  Jan-Simon Pendry  (jsp at forest)
 
        * Release 5.3 Alpha 11.
 Sun Mar 17 12:05:27 1991  Jan-Simon Pendry  (jsp at forest)
 
        * Release 5.3 Alpha 11.
index 0e7d3f1..b98d426 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    5.3 (Berkeley) %G%
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 PROG=  amd
 MAN8=  amd.0
 
 PROG=  amd
 MAN8=  amd.0
index c185d00..756283a 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: afs_ops.c,v 5.2.1.6 91/03/17 17:49:10 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)afs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)afs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: afs_ops.c,v 5.2.1.9 91/05/07 22:17:40 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -229,12 +230,6 @@ static int root_mount(mp)
 am_node *mp;
 {
        mntfs *mf = mp->am_mnt;
 am_node *mp;
 {
        mntfs *mf = mp->am_mnt;
-#ifdef notdef
-       /*
-        * Make sure fattr is set up correctly
-        */
-       mk_fattr(mp, NFDIR);
-#endif
 
        mf->mf_mount = strealloc(mf->mf_mount, pid_fsname);
        mf->mf_private = (voidp) mapc_find(mf->mf_info, "");
 
        mf->mf_mount = strealloc(mf->mf_mount, pid_fsname);
        mf->mf_private = (voidp) mapc_find(mf->mf_info, "");
@@ -252,13 +247,6 @@ am_node *mp;
 {
        mntfs *mf = mp->am_mnt;
 
 {
        mntfs *mf = mp->am_mnt;
 
-#ifdef notdef
-       /*
-        * Make sure fattr is set up correctly
-        */
-       mk_fattr(mp, NFDIR);
-#endif
-
        /*
         * Pseudo-directories are used to provide some structure
         * to the automounted directories instead
        /*
         * Pseudo-directories are used to provide some structure
         * to the automounted directories instead
@@ -352,11 +340,7 @@ am_node *mp;
 #else
                "%s,%s=%d,%s=%d,%s=%d,%s",
 #endif /* MNTOPT_INTR */
 #else
                "%s,%s=%d,%s=%d,%s=%d,%s",
 #endif /* MNTOPT_INTR */
-#ifdef AUTOMOUNT_RO
-               MNTOPT_RO,      /* You don't really want this... */
-#else
                "rw",
                "rw",
-#endif /* AUTOMOUNT_RO */
                "port", nfs_port,
                "timeo", afs_timeo,
                "retrans", afs_retrans,
                "port", nfs_port,
                "timeo", afs_timeo,
                "retrans", afs_retrans,
@@ -529,6 +513,8 @@ struct continuation {
        int callout;            /* Callout identifier */
 };
 
        int callout;            /* Callout identifier */
 };
 
+#define        IN_PROGRESS(cp) ((cp)->mp->am_mnt->mf_flags & MFF_MOUNTING)
+
 /*
  * Discard an old continuation
  */
 /*
  * Discard an old continuation
  */
@@ -670,6 +656,8 @@ voidp closure;
        dlog("Commencing retry for mount of %s", cp->mp->am_path);
 #endif /* DEBUG */
 
        dlog("Commencing retry for mount of %s", cp->mp->am_path);
 #endif /* DEBUG */
 
+       new_ttl(cp->mp);
+
        if ((cp->start + ALLOWED_MOUNT_TIME) < clocktime()) {
                /*
                 * The entire mount has timed out.
        if ((cp->start + ALLOWED_MOUNT_TIME) < clocktime()) {
                /*
                 * The entire mount has timed out.
@@ -681,12 +669,13 @@ voidp closure;
                 */
                plog(XLOG_INFO, "mount of \"%s\" has timed out", cp->mp->am_path);
                error = ETIMEDOUT;
                 */
                plog(XLOG_INFO, "mount of \"%s\" has timed out", cp->mp->am_path);
                error = ETIMEDOUT;
-               new_ttl(cp->mp);
                while (*cp->ivec)
                        cp->ivec++;
        }
 
                while (*cp->ivec)
                        cp->ivec++;
        }
 
-       (void) afs_bgmount(cp, error);
+       if (error || !IN_PROGRESS(cp)) {
+               (void) afs_bgmount(cp, error);
+       }
        reschedule_timeout_mp();
 }
 
        reschedule_timeout_mp();
 }
 
@@ -848,6 +837,7 @@ int mpe;
                }
 
 #ifdef SUNOS4_COMPAT
                }
 
 #ifdef SUNOS4_COMPAT
+#ifdef nomore
                /*
                 * By default, you only get this bit on SunOS4.
                 * If you want this anyway, then define SUNOS4_COMPAT
                /*
                 * By default, you only get this bit on SunOS4.
                 * If you want this anyway, then define SUNOS4_COMPAT
@@ -866,6 +856,7 @@ int mpe;
                if (strchr(*cp->ivec, '=') == 0)
                        p = sunos4_match(&cp->fs_opts, *cp->ivec, cp->def_opts, mp->am_path, cp->key, mp->am_parent->am_mnt->mf_info);
                else
                if (strchr(*cp->ivec, '=') == 0)
                        p = sunos4_match(&cp->fs_opts, *cp->ivec, cp->def_opts, mp->am_path, cp->key, mp->am_parent->am_mnt->mf_info);
                else
+#endif
 #endif /* SUNOS4_COMPAT */
                        p = ops_match(&cp->fs_opts, *cp->ivec, cp->def_opts, mp->am_path, cp->key, mp->am_parent->am_mnt->mf_info);
 
 #endif /* SUNOS4_COMPAT */
                        p = ops_match(&cp->fs_opts, *cp->ivec, cp->def_opts, mp->am_path, cp->key, mp->am_parent->am_mnt->mf_info);
 
@@ -911,6 +902,7 @@ int mpe;
                        } else {
                                mp->am_link = str3cat((char *) 0,
                                        mf->mf_fo->opt_fs, "/", link_dir);
                        } else {
                                mp->am_link = str3cat((char *) 0,
                                        mf->mf_fo->opt_fs, "/", link_dir);
+                               normalize_slash(mp->am_link);
                        }
                }
 
                        }
                }
 
@@ -1020,6 +1012,11 @@ int mpe;
                        dlog("foreground mount of \"%s\" ...", mf->mf_info);
 #endif /* DEBUG */
                        this_error = try_mount((voidp) mp);
                        dlog("foreground mount of \"%s\" ...", mf->mf_info);
 #endif /* DEBUG */
                        this_error = try_mount((voidp) mp);
+                       if (this_error < 0) {
+                               if (!mf_retry)
+                                       mf_retry = dup_mntfs(mf);
+                               cp->retry = TRUE;
+                       }
                }
 
                if (this_error >= 0) {
                }
 
                if (this_error >= 0) {
@@ -1072,7 +1069,7 @@ int mpe;
                return -1;
        }
 
                return -1;
        }
 
-       if (hard_error < 0 || this_error != 0)
+       if (hard_error < 0 || this_error == 0)
                hard_error = this_error;
 
        /*
                hard_error = this_error;
 
        /*
index d55d63c..d796fc2 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: am_ops.c,v 5.2.1.3 91/03/03 20:37:39 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)am_ops.c    5.2 (Berkeley) %G%
+ *     @(#)am_ops.c    5.3 (Berkeley) %G%
+ *
+ * $Id: am_ops.c,v 5.2.1.5 91/05/07 22:17:46 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -62,6 +63,7 @@ FILE *fp;
 }
 
 #ifdef SUNOS4_COMPAT
 }
 
 #ifdef SUNOS4_COMPAT
+#ifdef nomore
 /*
  * Crack a SunOS4-style host:fs:sub-link line
  * Construct an amd-style line and call the
 /*
  * Crack a SunOS4-style host:fs:sub-link line
  * Construct an amd-style line and call the
@@ -86,6 +88,7 @@ char *map;
                g_key);
        return ops_match(fo, keybuf, "", path, keym, map);
 }
                g_key);
        return ops_match(fo, keybuf, "", path, keym, map);
 }
+#endif
 #endif /* SUNOS4_COMPAT */
 
 am_ops *ops_match(fo, key, g_key, path, keym, map)
 #endif /* SUNOS4_COMPAT */
 
 am_ops *ops_match(fo, key, g_key, path, keym, map)
index 15ae790..5117fe2 100644 (file)
@@ -1,3 +1,4 @@
+.\"
 .\" Copyright (c) 1989 Jan-Simon Pendry
 .\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 .\" Copyright (c) 1989, 1991 The Regents of the University of California.
 .\" Copyright (c) 1989 Jan-Simon Pendry
 .\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 .\" Copyright (c) 1989, 1991 The Regents of the University of California.
@@ -8,7 +9,9 @@
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)amd.8      5.3 (Berkeley) %G%
+.\"     @(#)amd.8      5.4 (Berkeley) %G%
+.\"
+.\" $Id: amd.8,v 5.2.1.2 91/05/07 22:20:43 jsp Alpha $
 .\"
 .Dd March 17, 1991
 .Dt AMD 8
 .\"
 .Dd March 17, 1991
 .Dt AMD 8
@@ -200,4 +203,5 @@ the features.
 <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK.
 .Sh HISTORY
 .Nm Amd
 <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK.
 .Sh HISTORY
 .Nm Amd
+.\" %sccs.include.redist.man%
 .At
 .At
index 8687cee..9f90907 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amd.c,v 5.2.1.4 91/03/17 17:48:40 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amd.c       5.2 (Berkeley) %G%
+ *     @(#)amd.c       5.3 (Berkeley) %G%
+ *
+ * $Id: amd.c,v 5.2.1.5 91/05/07 22:17:44 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 5ca2b88..e18204f 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq_subr.c,v 5.2.1.4 91/03/17 17:48:23 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amq_subr.c  5.2 (Berkeley) %G%
+ *     @(#)amq_subr.c  5.3 (Berkeley) %G%
+ *
+ * $Id: amq_subr.c,v 5.2.1.6 91/05/07 22:17:47 jsp Alpha $
+ *
  */
 /*
  * Auxilliary routines for amq tool
  */
 /*
  * Auxilliary routines for amq tool
@@ -20,7 +21,6 @@
 #include "am.h"
 #include "amq.h"
 #include <ctype.h>
 #include "am.h"
 #include "amq.h"
 #include <ctype.h>
-#include <sys/param.h>
 
 /*ARGSUSED*/
 voidp
 
 /*ARGSUSED*/
 voidp
index b2e170e..640b7f9 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: clock.c,v 5.2.1.4 91/03/03 20:41:36 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)clock.c     5.2 (Berkeley) %G%
+ *     @(#)clock.c     5.3 (Berkeley) %G%
+ *
+ * $Id: clock.c,v 5.2.1.5 91/05/07 22:17:49 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index bacc77b..b47b9f7 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: efs_ops.c,v 5.2.1.2 90/11/04 23:17:14 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)efs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)efs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: efs_ops.c,v 5.2.1.3 91/05/07 22:17:50 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index bb9738b..ebbfac0 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: get_args.c,v 5.2.1.4 91/03/17 17:48:02 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)get_args.c  5.2 (Berkeley) %G%
+ *     @(#)get_args.c  5.3 (Berkeley) %G%
+ *
+ * $Id: get_args.c,v 5.2.1.5 91/05/07 22:17:52 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 1f16aed..3e645be 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: host_ops.c,v 5.2.1.3 91/03/03 20:42:25 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)host_ops.c  5.2 (Berkeley) %G%
+ *     @(#)host_ops.c  5.3 (Berkeley) %G%
+ *
+ * $Id: host_ops.c,v 5.2.1.6 91/05/07 22:17:53 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -150,7 +151,7 @@ fhstatus *fhp;
        /*
         * Pick a number, any number...
         */
        /*
         * Pick a number, any number...
         */
-       tv.tv_sec = 10;
+       tv.tv_sec = 20;
        tv.tv_usec = 0;
 
 #ifdef DEBUG
        tv.tv_usec = 0;
 
 #ifdef DEBUG
@@ -259,11 +260,9 @@ mntfs *mf;
        }
 
        if (!nfs_auth) {
        }
 
        if (!nfs_auth) {
-               nfs_auth = authunix_create_default();
-               if (!nfs_auth) {
-                       error = ENOBUFS;
+               error = make_nfs_auth();
+               if (error)
                        goto out;
                        goto out;
-               }
        }
 
        client->cl_auth = nfs_auth;
        }
 
        client->cl_auth = nfs_auth;
@@ -475,7 +474,10 @@ mntfs *mf;
        if (xerror && amd_state != Finishing) {
                xerror = host_fmount(mf);
                if (!xerror) {
        if (xerror && amd_state != Finishing) {
                xerror = host_fmount(mf);
                if (!xerror) {
+                       /*
+                        * Don't log this - it's usually too verbose
                        plog(XLOG_INFO, "Remounted host %s", mf->mf_info);
                        plog(XLOG_INFO, "Remounted host %s", mf->mf_info);
+                        */
                        xerror = EBUSY;
                }
        }
                        xerror = EBUSY;
                }
        }
index 6d31e3b..9922f7e 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: ifs_ops.c,v 5.2.1.3 91/03/17 17:47:48 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)ifs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)ifs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: ifs_ops.c,v 5.2.1.4 91/05/07 22:17:55 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index ff74326..ae03277 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: info_file.c,v 5.2.1.2 91/03/03 20:39:34 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)info_file.c 5.2 (Berkeley) %G%
+ *     @(#)info_file.c 5.3 (Berkeley) %G%
+ *
+ * $Id: info_file.c,v 5.2.1.4 91/05/07 22:17:57 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -43,6 +44,7 @@ FILE *fp;
                                int ch;
                                buf += len - 2;
                                size -= len - 2;
                                int ch;
                                buf += len - 2;
                                size -= len - 2;
+                               *buf = '\n'; buf[1] = '\0';
                                /*
                                 * Skip leading white space on next line
                                 */
                                /*
                                 * Skip leading white space on next line
                                 */
index 8d68be4..27efd87 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: info_hes.c,v 5.2.1.3 91/03/03 20:39:41 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)info_hes.c  5.2 (Berkeley) %G%
+ *     @(#)info_hes.c  5.3 (Berkeley) %G%
+ *
+ * $Id: info_hes.c,v 5.2.1.5 91/05/07 22:17:58 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -72,7 +73,9 @@ time_t *tp;
  * of /defaults in hesiod.home will result in a
  * call to hes_resolve("/defaults", "home.automount");
  */
  * of /defaults in hesiod.home will result in a
  * call to hes_resolve("/defaults", "home.automount");
  */
+#ifdef notdef
 #define MAKE_HES_NAME(dest, src) sprintf(dest, "%s%s", src + HES_PREFLEN, ".automount")
 #define MAKE_HES_NAME(dest, src) sprintf(dest, "%s%s", src + HES_PREFLEN, ".automount")
+#endif
 
 /*
  * Do a Hesiod nameserver call.
 
 /*
  * Do a Hesiod nameserver call.
@@ -87,24 +90,25 @@ char **pval;
 time_t *tp;
 {
        int error;
 time_t *tp;
 {
        int error;
-       char hes_map[MAXPATHLEN];
+       char hes_key[MAXPATHLEN];
        char **rvec;
 #ifdef DEBUG
        dlog("hesiod_search(m=%x, map=%s, key=%s, pval=%x tp=%x)", m, map, key, pval, tp);
 #endif
        char **rvec;
 #ifdef DEBUG
        dlog("hesiod_search(m=%x, map=%s, key=%s, pval=%x tp=%x)", m, map, key, pval, tp);
 #endif
-       MAKE_HES_NAME(hes_map, map);
+       /*MAKE_HES_NAME(hes_map, map);*/
+       sprintf(hes_key, "%s.%s", key, map+HES_PREFLEN);
 
        /*
         * Call the resolver
         */
 #ifdef DEBUG
 
        /*
         * Call the resolver
         */
 #ifdef DEBUG
-       dlog("hesiod_search: hes_resolve(%s, %s)", key, hes_map);
+       dlog("hesiod_search: hes_resolve(%s, %s)", hes_key, "automount");
 #ifdef HAS_HESIOD_RELOAD
        if (debug_flags & D_FULL)
                _res.options |= RES_DEBUG;
 #endif
 #endif
 #ifdef HAS_HESIOD_RELOAD
        if (debug_flags & D_FULL)
                _res.options |= RES_DEBUG;
 #endif
 #endif
-       rvec = hes_resolve(key, hes_map);
+       rvec = hes_resolve(hes_key, "automount");
        /*
         * If a reply was forthcoming then return
         * it (and free subsequent replies)
        /*
         * If a reply was forthcoming then return
         * it (and free subsequent replies)
@@ -153,7 +157,6 @@ mnt_map *m;
 char *map;
 void (*fn)();
 {
 char *map;
 void (*fn)();
 {
-       char hes_map[MAXPATHLEN];
        char *zone_name, *cp;
        short domainlen;
        int status;
        char *zone_name, *cp;
        short domainlen;
        int status;
@@ -170,8 +173,7 @@ void (*fn)();
        _res.retrans = 90;
        hs_map = m;
        domainlen = strlen(hostdomain);
        _res.retrans = 90;
        hs_map = m;
        domainlen = strlen(hostdomain);
-       MAKE_HES_NAME(hes_map, map);
-       zone_name = hes_to_bind("", hes_map);
+       zone_name = hes_to_bind(map+HES_PREFLEN, "automount");
        if (*zone_name == '.')
                zone_name++;
        hs_domain = zone_name;
        if (*zone_name == '.')
                zone_name++;
        hs_domain = zone_name;
index 0a0686e..5f1011f 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: info_ndbm.c,v 5.2.1.2 91/03/03 20:39:40 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)info_ndbm.c 5.2 (Berkeley) %G%
+ *     @(#)info_ndbm.c 5.3 (Berkeley) %G%
+ *
+ * $Id: info_ndbm.c,v 5.2.1.3 91/05/07 22:18:00 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 6cfef9e..1f639d9 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: info_nis.c,v 5.2.1.3 91/03/17 17:47:31 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)info_nis.c  5.2 (Berkeley) %G%
+ *     @(#)info_nis.c  5.3 (Berkeley) %G%
+ *
+ * $Id: info_nis.c,v 5.2.1.4 91/05/07 22:18:01 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index a3f5e87..7bc36a7 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: info_passwd.c,v 5.2.1.2 91/03/03 20:39:38 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)info_passwd.c       5.2 (Berkeley) %G%
+ *     @(#)info_passwd.c       5.3 (Berkeley) %G%
+ *
+ * $Id: info_passwd.c,v 5.2.1.3 91/05/07 22:18:02 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index f33129d..6e4815c 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: info_union.c,v 5.2.1.2 91/03/03 20:39:43 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)info_union.c        5.2 (Berkeley) %G%
+ *     @(#)info_union.c        5.3 (Berkeley) %G%
+ *
+ * $Id: info_union.c,v 5.2.1.3 91/05/07 22:18:03 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 1f51acc..b015e24 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: map.c,v 5.2.1.5 91/03/17 17:47:23 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)map.c       5.2 (Berkeley) %G%
+ *     @(#)map.c       5.3 (Berkeley) %G%
+ *
+ * $Id: map.c,v 5.2.1.7 91/05/07 22:18:05 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -619,6 +620,29 @@ int path;
        return 0;
 }
 
        return 0;
 }
 
+/*
+ * Timeout all nodes waiting on
+ * a given Fserver.
+ */
+void map_flush_srvr P((fserver *fs));
+void map_flush_srvr(fs)
+fserver *fs;
+{
+       int i;
+       int done = 0;
+
+       for (i = last_used_map; i >= 0; --i) {
+               am_node *mp = exported_ap[i];
+               if (mp && mp->am_mnt && mp->am_mnt->mf_server == fs) {
+                       plog(XLOG_INFO, "Flushed %s; dependent on %s", mp->am_path, fs->fs_host);
+                       mp->am_ttl = clocktime();
+                       done = 1;
+               }
+       }
+       if (done)
+               reschedule_timeout_mp();
+}
+
 /*
  * Mount a top level automount node
  * by calling lookup in the parent
 /*
  * Mount a top level automount node
  * by calling lookup in the parent
index 11f152f..a861133 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mapc.c,v 5.2.1.7 91/03/17 17:46:52 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mapc.c      5.2 (Berkeley) %G%
+ *     @(#)mapc.c      5.3 (Berkeley) %G%
+ *
+ * $Id: mapc.c,v 5.2.1.9 91/05/07 22:18:07 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 5230d7f..e9ce267 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: misc_rpc.c,v 5.2.1.2 90/11/04 23:17:21 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)misc_rpc.c  5.2 (Berkeley) %G%
+ *     @(#)misc_rpc.c  5.3 (Berkeley) %G%
+ *
+ * $Id: misc_rpc.c,v 5.2.1.3 91/05/07 22:18:10 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index e8f3209..f3d2f16 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mntfs.c,v 5.2.1.4 91/03/17 17:46:40 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mntfs.c     5.2 (Berkeley) %G%
+ *     @(#)mntfs.c     5.3 (Berkeley) %G%
+ *
+ * $Id: mntfs.c,v 5.2.1.7 91/05/07 22:18:11 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -313,6 +314,18 @@ char *mopts;
                 */
                return mf;
        }
                 */
                return mf;
        }
+
+       /*
+        * Re-use the existing mntfs if it is mounted.
+        * This traps a race in nfsx.
+        */
+       if (mf->mf_ops != &efs_ops &&
+                       (mf->mf_flags & MFF_MOUNTED) &&
+                       !FSRV_ISDOWN(mf->mf_server)) {
+               mf->mf_fo = mo;
+               return mf;
+       }
+
        mf2 = find_mntfs(ops, mo, mp, info, auto_opts, mopts);
        free_mntfs(mf);
        return mf2;
        mf2 = find_mntfs(ops, mo, mp, info, auto_opts, mopts);
        free_mntfs(mf);
        return mf2;
index 7105a75..d6f42b7 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mount_fs.c,v 5.2.1.3 91/03/03 20:43:32 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mount_fs.c  5.2 (Berkeley) %G%
+ *     @(#)mount_fs.c  5.3 (Berkeley) %G%
+ *
+ * $Id: mount_fs.c,v 5.2.1.4 91/05/07 22:18:13 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 84abd7d..d661421 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mtab.c,v 5.2.1.1 90/10/21 22:29:27 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mtab.c      5.2 (Berkeley) %G%
+ *     @(#)mtab.c      5.3 (Berkeley) %G%
+ *
+ * $Id: mtab.c,v 5.2.1.2 91/05/07 22:18:15 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 8dd3bfa..a9b7a6f 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: nfs_ops.c,v 5.2.1.4 91/03/17 17:45:55 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)nfs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: nfs_ops.c,v 5.2.1.6 91/05/07 22:18:16 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -307,6 +308,25 @@ voidp wchan;
        return error;
 }
 
        return error;
 }
 
+int make_nfs_auth P((void))
+{
+#ifdef HAS_NFS_QUALIFIED_NAMES
+       /*
+        * From: Chris Metcalf <metcalf@masala.lcs.mit.edu>
+        * Use hostd, not just hostname.  Note that uids
+        * and gids and the gidlist are type *int* and not the
+        * system uid_t and gid_t types.
+        */
+       static int group_wheel = 0;
+       nfs_auth = authunix_create(hostd, 0, 0, 1, &group_wheel);
+#else
+       nfs_auth = authunix_create_default();
+#endif
+       if (!nfs_auth)
+               return ENOBUFS;
+       return 0;
+}
+
 static int call_mountd P((fh_cache *fp, u_long proc, fwd_fun f, voidp wchan));
 static int call_mountd(fp, proc, f, wchan)
 fh_cache *fp;
 static int call_mountd P((fh_cache *fp, u_long proc, fwd_fun f, voidp wchan));
 static int call_mountd(fp, proc, f, wchan)
 fh_cache *fp;
@@ -320,9 +340,9 @@ voidp wchan;
        int error;
 
        if (!nfs_auth) {
        int error;
 
        if (!nfs_auth) {
-               nfs_auth = authunix_create_default();
-               if (!nfs_auth)
-                       return ENOBUFS;
+               error = make_nfs_auth();
+               if (error)
+                       return error;
        }
 
        if (fp->fh_sin.sin_port == 0) {
        }
 
        if (fp->fh_sin.sin_port == 0) {
index 9f334ae..adf79a9 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: nfs_start.c,v 5.2.1.2 90/12/21 16:41:40 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfs_start.c 5.2 (Berkeley) %G%
+ *     @(#)nfs_start.c 5.3 (Berkeley) %G%
+ *
+ * $Id: nfs_start.c,v 5.2.1.3 91/05/07 22:18:21 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index ecf673e..738a58e 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: nfs_subr.c,v 5.2.1.4 91/03/03 20:46:34 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfs_subr.c  5.2 (Berkeley) %G%
+ *     @(#)nfs_subr.c  5.3 (Berkeley) %G%
+ *
+ * $Id: nfs_subr.c,v 5.2.1.5 91/05/07 22:18:23 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 902c8f8..597e1c3 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: nfsx_ops.c,v 5.2.1.5 91/03/17 17:46:15 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfsx_ops.c  5.2 (Berkeley) %G%
+ *     @(#)nfsx_ops.c  5.3 (Berkeley) %G%
+ *
+ * $Id: nfsx_ops.c,v 5.2.1.9 91/05/07 22:18:19 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
@@ -57,12 +58,21 @@ am_opts *fo;
                return FALSE;
        }
 
                return FALSE;
        }
 
+#ifdef notdef
        /* fiddle sublink, must be last... */
        if (fo->opt_sublink) {
                plog(XLOG_WARNING, "nfsx: sublink %s ignored", fo->opt_sublink);
                free((voidp) fo->opt_sublink);
                fo->opt_sublink = 0;
        }
        /* fiddle sublink, must be last... */
        if (fo->opt_sublink) {
                plog(XLOG_WARNING, "nfsx: sublink %s ignored", fo->opt_sublink);
                free((voidp) fo->opt_sublink);
                fo->opt_sublink = 0;
        }
+#endif
+
+       /* set default sublink */
+       if (fo->opt_sublink == 0) {
+               ptr = strchr(fo->opt_rfs, ',');
+               if (ptr && ptr != (fo->opt_rfs + 1))
+                       fo->opt_sublink = strnsave(fo->opt_rfs + 1, ptr - fo->opt_rfs - 1);
+       }
 
        /*
         * Remove trailing ",..." from ${fs}
 
        /*
         * Remove trailing ",..." from ${fs}
@@ -121,6 +131,7 @@ mntfs *mf;
        int i;
        int glob_error;
        struct nfsx *nx;
        int i;
        int glob_error;
        struct nfsx *nx;
+       int asked_for_wakeup = 0;
 
        nx = (struct nfsx *) mf->mf_private;
 
 
        nx = (struct nfsx *) mf->mf_private;
 
@@ -212,8 +223,7 @@ errexit:
                 * If HARD_NFSX_ERRORS is defined, make any
                 * initialisation failure a hard error and
                 * fail the entire group.  Otherwise only fail
                 * If HARD_NFSX_ERRORS is defined, make any
                 * initialisation failure a hard error and
                 * fail the entire group.  Otherwise only fail
-                * fail if none of the group is mountable (see
-                * nfsx_fmount).
+                * if none of the group is mountable (see nfsx_fmount).
                 */
 #ifdef HARD_NFSX_ERRORS
                if (error > 0)
                 */
 #ifdef HARD_NFSX_ERRORS
                if (error > 0)
@@ -222,8 +232,13 @@ errexit:
                if (error > 0)
                        n->n_error = error;
 #endif
                if (error > 0)
                        n->n_error = error;
 #endif
-               else if (error < 0)
+               else if (error < 0) {
                        glob_error = -1;
                        glob_error = -1;
+                       if (!asked_for_wakeup) {
+                               asked_for_wakeup = 1;
+                               sched_task(wakeup_task, (voidp) mf, (voidp) m);
+                       }
+               }
        }
 
        return glob_error;
        }
 
        return glob_error;
@@ -240,12 +255,12 @@ voidp closure;
        nfsx_mnt *n = nx->nx_try;
 
        n->n_mnt->mf_flags &= ~(MFF_ERROR|MFF_MOUNTING);
        nfsx_mnt *n = nx->nx_try;
 
        n->n_mnt->mf_flags &= ~(MFF_ERROR|MFF_MOUNTING);
-       mf->mf_flags &= ~(MFF_ERROR|MFF_MOUNTING);
+       mf->mf_flags &= ~MFF_ERROR;
 
        /*
         * Wakeup anything waiting for this mount
         */
 
        /*
         * Wakeup anything waiting for this mount
         */
-       wakeup((voidp) mf);
+       wakeup((voidp) n->n_mnt);
 
        if (rc || term) {
                if (term) {
 
        if (rc || term) {
                if (term) {
@@ -272,11 +287,15 @@ voidp closure;
                 */
                mf_mounted(n->n_mnt);
                n->n_error = 0;
                 */
                mf_mounted(n->n_mnt);
                n->n_error = 0;
-               /*
-                * Do the remaining bits
-                */
-               if (nfsx_fmount(mf) >= 0)
-                       mf_mounted(mf);
+       }
+
+       /*
+        * Do the remaining bits
+        */
+       if (nfsx_fmount(mf) >= 0) {
+               wakeup((voidp) mf);
+               mf->mf_flags &= ~MFF_MOUNTING;
+               mf_mounted(mf);
        }
 }
 
        }
 }
 
@@ -293,9 +312,10 @@ voidp mv;
        return error;
 }
 
        return error;
 }
 
-static int nfsx_fmount P((mntfs *mf));
-static int nfsx_fmount(mf)
+static int nfsx_remount P((mntfs *mf, int fg));
+static int nfsx_remount(mf, fg)
 mntfs *mf;
 mntfs *mf;
+int fg;
 {
        struct nfsx *nx = (struct nfsx *) mf->mf_private;
        nfsx_mnt *n;
 {
        struct nfsx *nx = (struct nfsx *) mf->mf_private;
        nfsx_mnt *n;
@@ -329,7 +349,7 @@ mntfs *mf;
 #ifdef DEBUG
                                dlog("calling underlying fmount on %s", m->mf_mount);
 #endif
 #ifdef DEBUG
                                dlog("calling underlying fmount on %s", m->mf_mount);
 #endif
-                               if (foreground && (m->mf_ops->fs_flags & FS_MBACKGROUND)) {
+                               if (!fg && foreground && (m->mf_ops->fs_flags & FS_MBACKGROUND)) {
                                        m->mf_flags |= MFF_MOUNTING;    /* XXX */
 #ifdef DEBUG
                                        dlog("backgrounding mount of \"%s\"", m->mf_info);
                                        m->mf_flags |= MFF_MOUNTING;    /* XXX */
 #ifdef DEBUG
                                        dlog("backgrounding mount of \"%s\"", m->mf_info);
@@ -341,7 +361,7 @@ mntfs *mf;
                                } else {
 #ifdef DEBUG
                                        dlog("foreground mount of \"%s\" ...", mf->mf_info);
                                } else {
 #ifdef DEBUG
                                        dlog("foreground mount of \"%s\" ...", mf->mf_info);
-#endif /* DEBUG */
+#endif
                                        n->n_error = (*m->mf_ops->fmount_fs)(m);
                                }
                        }
                                        n->n_error = (*m->mf_ops->fmount_fs)(m);
                                }
                        }
@@ -362,6 +382,18 @@ mntfs *mf;
        return glob_error < 0 ? 0 : glob_error;
 }
 
        return glob_error < 0 ? 0 : glob_error;
 }
 
+static int nfsx_fmount P((mntfs *mf));
+static int nfsx_fmount(mf)
+mntfs *mf;
+{
+       return nfsx_remount(mf, FALSE);
+}
+
+/*
+ * Unmount an NFS hierarchy.
+ * Note that this is called in the foreground
+ * and so may hang under extremely rare conditions.
+ */
 static int nfsx_fumount(mf)
 mntfs *mf;
 {
 static int nfsx_fumount(mf)
 mntfs *mf;
 {
@@ -391,6 +423,7 @@ mntfs *mf;
                        n->n_error = (*m->mf_ops->fumount_fs)(m);
                        if (n->n_error) {
                                glob_error = n->n_error;
                        n->n_error = (*m->mf_ops->fumount_fs)(m);
                        if (n->n_error) {
                                glob_error = n->n_error;
+                               n->n_error = 0;
                        } else {
                                /*
                                 * Make sure remount gets this node
                        } else {
                                /*
                                 * Make sure remount gets this node
@@ -405,9 +438,11 @@ mntfs *mf;
         * whole lot...
         */
        if (glob_error) {
         * whole lot...
         */
        if (glob_error) {
-               glob_error = nfsx_fmount(mf);
-               if (glob_error)
+               glob_error = nfsx_remount(mf, TRUE);
+               if (glob_error) {
+                       errno = glob_error; /* XXX */
                        plog(XLOG_USER, "nfsx: remount of %s failed: %m", mf->mf_mount);
                        plog(XLOG_USER, "nfsx: remount of %s failed: %m", mf->mf_mount);
+               }
                glob_error = EBUSY;
        } else {
                /*
                glob_error = EBUSY;
        } else {
                /*
@@ -416,11 +451,14 @@ mntfs *mf;
                for (n = nx->nx_v; n < nx->nx_v + nx->nx_c; n++) {
                        mntfs *m = n->n_mnt;
                        if (n->n_error < 0) {
                for (n = nx->nx_v; n < nx->nx_v + nx->nx_c; n++) {
                        mntfs *m = n->n_mnt;
                        if (n->n_error < 0) {
-                               if (m->mf_ops->fs_flags & FS_MKMNT)
+                               if (m->mf_ops->fs_flags & FS_MKMNT) {
                                        (void) rmdirs(m->mf_mount);
                                        (void) rmdirs(m->mf_mount);
+                                       m->mf_flags &= ~MFF_MKMNT;
+                               }
                        }
                        free_mntfs(m);
                        n->n_mnt = 0;
                        }
                        free_mntfs(m);
                        n->n_mnt = 0;
+                       n->n_error = -1;
                }
        }
 
                }
        }
 
index 2ccf26a..8d17411 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: opts.c,v 5.2.1.5 91/03/17 17:45:34 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)opts.c      5.2 (Berkeley) %G%
+ *     @(#)opts.c      5.3 (Berkeley) %G%
+ *
+ * $Id: opts.c,v 5.2.1.7 91/05/07 22:18:24 jsp Alpha $
+ *
  */
 
 #include "am.h"
 
  */
 
 #include "am.h"
 
-extern char *getenv P((char *));
+extern char *getenv P((const char *));
 
 /*
  * static copy of the options with
 
 /*
  * static copy of the options with
index e1f93d0..fab5b70 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: pfs_ops.c,v 5.2.1.1 90/10/21 22:29:36 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)pfs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)pfs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: pfs_ops.c,v 5.2.1.2 91/05/07 22:18:27 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index ad2e903..1eafeb8 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: restart.c,v 5.2.1.2 90/11/04 23:17:27 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)restart.c   5.2 (Berkeley) %G%
+ *     @(#)restart.c   5.3 (Berkeley) %G%
+ *
+ * $Id: restart.c,v 5.2.1.3 91/05/07 22:18:29 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 8c1db46..890e9f6 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: rpc_fwd.c,v 5.2.1.2 91/03/03 20:46:57 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)rpc_fwd.c   5.2 (Berkeley) %G%
+ *     @(#)rpc_fwd.c   5.3 (Berkeley) %G%
+ *
+ * $Id: rpc_fwd.c,v 5.2.1.3 91/05/07 22:18:30 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 8c03107..a2e08f1 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: sched.c,v 5.2.1.3 91/03/17 17:42:03 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)sched.c     5.2 (Berkeley) %G%
+ *     @(#)sched.c     5.3 (Berkeley) %G%
+ *
+ * $Id: sched.c,v 5.2.1.5 91/05/07 22:18:32 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -113,9 +114,9 @@ voidp wchan;
         * Allocate a new task
         */
        pjob *p = sched_job(cf, ca);
         * Allocate a new task
         */
        pjob *p = sched_job(cf, ca);
-#ifdef DEBUG
-       /*dlog("sleep(%#x)", wchan);*/
-#endif /* DEBUG */
+#ifdef DEBUG_SLEEP
+       dlog("SLEEP on %#x", wchan);
+#endif
        p->wchan = wchan;
        p->pid = 0;
        bzero((voidp) &p->w, sizeof(p->w));
        p->wchan = wchan;
        p->pid = 0;
        bzero((voidp) &p->w, sizeof(p->w));
@@ -133,13 +134,15 @@ void wakeup(wchan)
 voidp wchan;
 {
        pjob *p, *p2;
 voidp wchan;
 {
        pjob *p, *p2;
-
+#ifdef DEBUG_SLEEP
+       int done = 0;
+#endif
        if (!foreground)
                return;
 
        if (!foreground)
                return;
 
-#ifdef DEBUG
+#ifdef DEBUG_SLEEP
        /*dlog("wakeup(%#x)", wchan);*/
        /*dlog("wakeup(%#x)", wchan);*/
-#endif /* DEBUG */
+#endif
        /*
         * Can't user ITER() here because
         * wakeupjob() juggles the list.
        /*
         * Can't user ITER() here because
         * wakeupjob() juggles the list.
@@ -147,9 +150,18 @@ voidp wchan;
        for (p = FIRST(pjob, &proc_wait_list);
                        p2 = NEXT(pjob, p), p != HEAD(pjob, &proc_wait_list);
                        p = p2) {
        for (p = FIRST(pjob, &proc_wait_list);
                        p2 = NEXT(pjob, p), p != HEAD(pjob, &proc_wait_list);
                        p = p2) {
-               if (p->wchan == wchan)
+               if (p->wchan == wchan) {
+#ifdef DEBUG_SLEEP
+                       done = 1;
+#endif
                        wakeupjob(p);
                        wakeupjob(p);
+               }
        }
        }
+
+#ifdef DEBUG_SLEEP
+       if (!done)
+               dlog("Nothing SLEEPing on %#x", wchan);
+#endif
 }
 
 void wakeup_task(rc, term, cl)
 }
 
 void wakeup_task(rc, term, cl)
index 4088966..f1126ba 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: sfs_ops.c,v 5.2.1.2 90/12/21 16:41:47 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)sfs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)sfs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: sfs_ops.c,v 5.2.1.3 91/05/07 22:18:33 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 569d9bf..40ff048 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: srvr_afs.c,v 5.2.1.1 90/10/21 22:29:44 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)srvr_afs.c  5.2 (Berkeley) %G%
+ *     @(#)srvr_afs.c  5.3 (Berkeley) %G%
+ *
+ * $Id: srvr_afs.c,v 5.2.1.2 91/05/07 22:18:35 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 604221c..d3fa9aa 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: srvr_nfs.c,v 5.2.1.3 91/03/17 17:44:37 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)srvr_nfs.c  5.2 (Berkeley) %G%
+ *     @(#)srvr_nfs.c  5.3 (Berkeley) %G%
+ *
+ * $Id: srvr_nfs.c,v 5.2.1.6 91/05/07 22:18:36 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -219,11 +220,16 @@ static void recompute_portmap P((fserver *fs));
 static void recompute_portmap(fs)
 fserver *fs;
 {                              
 static void recompute_portmap(fs)
 fserver *fs;
 {                              
-       if (!nfs_auth)
-               nfs_auth = authunix_create_default();
-       if (!nfs_auth) {
+       int error;
+
+       if (nfs_auth)
+               error = 0;
+       else
+               error = make_nfs_auth();
+
+       if (error) {
                nfs_private *np = (nfs_private *) fs->fs_private;
                nfs_private *np = (nfs_private *) fs->fs_private;
-               np->np_error = ENOBUFS;
+               np->np_error = error;
        } else {
                call_portmap(fs, nfs_auth, MOUNTPROG,
                        MOUNTVERS, (unsigned long) IPPROTO_UDP);
        } else {
                call_portmap(fs, nfs_auth, MOUNTPROG,
                        MOUNTVERS, (unsigned long) IPPROTO_UDP);
@@ -284,6 +290,7 @@ int done;
                                if (fs->fs_flags & FSF_WANT)
                                        wakeup_srvr(fs);
 #endif /* notdef */
                                if (fs->fs_flags & FSF_WANT)
                                        wakeup_srvr(fs);
 #endif /* notdef */
+                               map_flush_srvr(fs);
                        } else {
                                if (fs->fs_flags & FSF_VALID) {
 #ifdef DEBUG
                        } else {
                                if (fs->fs_flags & FSF_VALID) {
 #ifdef DEBUG
@@ -364,6 +371,7 @@ fserver *fs;
         * If ttl has expired then guess that it is dead
         */
        if (np->np_ttl < clocktime()) {
         * If ttl has expired then guess that it is dead
         */
        if (np->np_ttl < clocktime()) {
+               int oflags = fs->fs_flags;
                if ((fs->fs_flags & FSF_DOWN) == 0) {
                        /*
                         * Server was up, but is now down.
                if ((fs->fs_flags & FSF_DOWN) == 0) {
                        /*
                         * Server was up, but is now down.
@@ -387,12 +395,13 @@ fserver *fs;
                        /*
                         * Known to be down
                         */
                        /*
                         * Known to be down
                         */
-                       fs->fs_flags |= FSF_VALID;
 #ifdef DEBUG
 #ifdef DEBUG
-                       srvrlog(fs, "starts down");
+                       if ((fs->fs_flags & FSF_VALID) == 0)
+                               srvrlog(fs, "starts down");
 #endif
 #endif
+                       fs->fs_flags |= FSF_VALID;
                }
                }
-               if (fs->fs_flags & FSF_WANT)
+               if (oflags != fs->fs_flags && (fs->fs_flags & FSF_WANT))
                        wakeup_srvr(fs);
        } else {
 #ifdef DEBUG
                        wakeup_srvr(fs);
        } else {
 #ifdef DEBUG
index 165cbd3..8ae15d3 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: ufs_ops.c,v 5.2.1.1 90/10/21 22:29:47 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)ufs_ops.c   5.2 (Berkeley) %G%
+ *     @(#)ufs_ops.c   5.3 (Berkeley) %G%
+ *
+ * $Id: ufs_ops.c,v 5.2.1.2 91/05/07 22:18:38 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index e892735..eed8531 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: umount_fs.c,v 5.2.1.2 91/03/03 20:34:23 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)umount_fs.c 5.2 (Berkeley) %G%
+ *     @(#)umount_fs.c 5.3 (Berkeley) %G%
+ *
+ * $Id: umount_fs.c,v 5.2.1.3 91/05/07 22:18:39 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index e8dbad8..3fb9dfd 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: util.c,v 5.2.1.4 91/03/17 17:44:16 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)util.c      5.2 (Berkeley) %G%
+ *     @(#)util.c      5.3 (Berkeley) %G%
+ *
+ * $Id: util.c,v 5.2.1.8 91/05/07 22:18:41 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -319,8 +320,9 @@ void mf_mounted(mf)
 mntfs *mf;
 {
        int quoted;
 mntfs *mf;
 {
        int quoted;
+       int wasmounted = mf->mf_flags & MFF_MOUNTED;
 
 
-       if (!(mf->mf_flags & MFF_MOUNTED)) {
+       if (!wasmounted) {
                /*
                 * If this is a freshly mounted
                 * filesystem then update the
                /*
                 * If this is a freshly mounted
                 * filesystem then update the
@@ -342,10 +344,11 @@ mntfs *mf;
         * Log message
         */
        quoted = strchr(mf->mf_info, ' ') != 0;
         * Log message
         */
        quoted = strchr(mf->mf_info, ' ') != 0;
-       plog(XLOG_INFO, "%s%s%s mounted fstype %s on %s",
+       plog(XLOG_INFO, "%s%s%s %s fstype %s on %s",
                quoted ? "\"" : "",
                mf->mf_info,
                quoted ? "\"" : "",
                quoted ? "\"" : "",
                mf->mf_info,
                quoted ? "\"" : "",
+               wasmounted ? "referenced" : "mounted",
                mf->mf_ops->fs_type, mf->mf_mount);
 }
 
                mf->mf_ops->fs_type, mf->mf_mount);
 }
 
@@ -416,7 +419,8 @@ am_node *mp;
        mf->mf_flags |= MFF_MOUNTING;
        error = (*mf->mf_ops->mount_fs)(mp);
        mf = mp->am_mnt;
        mf->mf_flags |= MFF_MOUNTING;
        error = (*mf->mf_ops->mount_fs)(mp);
        mf = mp->am_mnt;
-       mf->mf_flags &= ~MFF_MOUNTING;
+       if (error >= 0)
+               mf->mf_flags &= ~MFF_MOUNTING;
        if (!error && !(mf->mf_ops->fs_flags & FS_MBACKGROUND)) {
                /* ...but see ifs_mount */
                am_mounted(mp);
        if (!error && !(mf->mf_ops->fs_flags & FS_MBACKGROUND)) {
                /* ...but see ifs_mount */
                am_mounted(mp);
@@ -475,7 +479,6 @@ am_node *mp;
  * TODO: Need a better strategy for handling errors
  */
 static int dofork(P_void);
  * TODO: Need a better strategy for handling errors
  */
 static int dofork(P_void);
-INLINE
 static int dofork()
 {
        int pid;
 static int dofork()
 {
        int pid;
@@ -502,13 +505,16 @@ int background()
        if (pid == 0) {
 #ifdef DEBUG
                dlog("backgrounded");
        if (pid == 0) {
 #ifdef DEBUG
                dlog("backgrounded");
-#endif /* DEBUG */
+#endif
                foreground = 0;
        }
 
        return pid;
 }
 
                foreground = 0;
        }
 
        return pid;
 }
 
+/*
+ * Make all the directories in the path.
+ */
 int mkdirs P((char *path, int mode));
 int mkdirs(path, mode)
 char *path;
 int mkdirs P((char *path, int mode));
 int mkdirs(path, mode)
 char *path;
@@ -536,7 +542,7 @@ int mode;
                } else {
 #ifdef DEBUG
                        dlog("mkdir(%s)", p2);
                } else {
 #ifdef DEBUG
                        dlog("mkdir(%s)", p2);
-#endif /* DEBUG */
+#endif
                }
                *sp = '/';
        }
                }
                *sp = '/';
        }
@@ -546,7 +552,7 @@ int mode;
        } else {
 #ifdef DEBUG
                dlog("mkdir(%s)", p2);
        } else {
 #ifdef DEBUG
                dlog("mkdir(%s)", p2);
-#endif /* DEBUG */
+#endif
        }
 
 #ifdef SUNOS4_WORKAROUND
        }
 
 #ifdef SUNOS4_WORKAROUND
@@ -572,6 +578,12 @@ int mode;
                (stb.st_mode & S_IFMT) == S_IFDIR ? 0 : error_so_far;
 }
 
                (stb.st_mode & S_IFMT) == S_IFDIR ? 0 : error_so_far;
 }
 
+/*
+ * Remove as many directories in the path as possible.
+ * Give up if the directory doesn't appear to have
+ * been created by Amd (not mode dr-x) or an rmdir
+ * fails for any reason.
+ */
 void rmdirs P((char *dir));
 void rmdirs(dir)
 char *dir;
 void rmdirs P((char *dir));
 void rmdirs(dir)
 char *dir;
@@ -588,13 +600,16 @@ char *dir;
                 */
                if (stat(xdp, &stb) == 0 && (stb.st_mode & 0200) == 0) {
                        if (rmdir(xdp) < 0) {
                 */
                if (stat(xdp, &stb) == 0 && (stb.st_mode & 0200) == 0) {
                        if (rmdir(xdp) < 0) {
-                               if (errno != ENOTEMPTY && errno != EBUSY && errno != EEXIST)
+                               if (errno != ENOTEMPTY &&
+                                   errno != EBUSY &&
+                                   errno != EEXIST &&
+                                   errno != EINVAL)
                                        plog(XLOG_ERROR, "rmdir(%s): %m", xdp);
                                break;
                        } else {
 #ifdef DEBUG
                                dlog("rmdir(%s)", xdp);
                                        plog(XLOG_ERROR, "rmdir(%s): %m", xdp);
                                break;
                        } else {
 #ifdef DEBUG
                                dlog("rmdir(%s)", xdp);
-#endif /* DEBUG */
+#endif
                        }
                } else {
                        break;
                        }
                } else {
                        break;
index 206790c..84278a2 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: wire.c,v 5.2.1.1 91/03/17 17:42:58 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)wire.c      5.2 (Berkeley) %G%
+ *     @(#)wire.c      5.3 (Berkeley) %G%
+ *
+ * $Id: wire.c,v 5.2.1.5 91/05/07 22:14:21 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -84,14 +85,14 @@ char *getwire()
         */
 #ifdef AF_LINK
 #define max(a, b) ((a) > (b) ? (a) : (b))
         */
 #ifdef AF_LINK
 #define max(a, b) ((a) > (b) ? (a) : (b))
-#define size(p) max((p).sa_len, sizeof(p))
+#define size(ifr) (max((ifr)->ifr_addr.sa_len, sizeof((ifr)->ifr_addr)) + sizeof(ifr->ifr_name))
 #else
 #else
-#define size(p) sizeof(p)
+#define size(ifr) sizeof(*ifr)
 #endif
        /*
         * Scan the list looking for a suitable interface
         */
 #endif
        /*
         * Scan the list looking for a suitable interface
         */
-       for (cp = buf; cp < cplim; cp += sizeof(ifr->ifr_name) + size(ifr->ifr_addr)) {
+       for (cp = buf; cp < cplim; cp += size(ifr)) {
                ifr = (struct ifreq *) cp;
 
                if (ifr->ifr_addr.sa_family != AF_INET)
                ifr = (struct ifreq *) cp;
 
                if (ifr->ifr_addr.sa_family != AF_INET)
@@ -128,6 +129,14 @@ char *getwire()
                 * Figure out the subnet's network address
                 */
                subnet = address & netmask;
                 * Figure out the subnet's network address
                 */
                subnet = address & netmask;
+#ifdef IN_CLASSA
+               if (IN_CLASSA(subnet))
+                       subnet >>= IN_CLASSA_NSHIFT;
+               else if (IN_CLASSB(subnet))
+                       subnet >>= IN_CLASSB_NSHIFT;
+               else if (IN_CLASSC(subnet))
+                       subnet >>= IN_CLASSC_NSHIFT;
+#endif
                /*
                 * Now get a usable name.
                 * First use the network database,
                /*
                 * Now get a usable name.
                 * First use the network database,
@@ -138,6 +147,7 @@ char *getwire()
                if (np)
                        s = np->n_name;
                else {
                if (np)
                        s = np->n_name;
                else {
+                       subnet = address & netmask;
                        hp = gethostbyaddr((char *) &subnet, 4, AF_INET);
                        if (hp)
                                s = hp->h_name;
                        hp = gethostbyaddr((char *) &subnet, 4, AF_INET);
                        if (hp)
                                s = hp->h_name;
@@ -161,5 +171,4 @@ char *getwire()
 {
        return strdup(NO_SUBNET);
 }
 {
        return strdup(NO_SUBNET);
 }
- * %sccs.include.redist.c%
 #endif /* SIOCGIFFLAGS */
 #endif /* SIOCGIFFLAGS */
index 4d6c9c2..6148200 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: xutil.c,v 5.2.1.4 91/03/17 17:42:22 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)xutil.c     5.2 (Berkeley) %G%
+ *     @(#)xutil.c     5.3 (Berkeley) %G%
+ *
+ * $Id: xutil.c,v 5.2.1.5 91/05/07 22:18:43 jsp Alpha $
+ *
  */
 
 #include "config.h"
  */
 
 #include "config.h"
index 54027a9..4125d43 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    5.3 (Berkeley) %G%
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 PROG = amq
 SRCS = amq.c amq_clnt.c amq_xdr.c misc_rpc.c
 
 PROG = amq
 SRCS = amq.c amq_clnt.c amq_xdr.c misc_rpc.c
index bbd38ec..5a6269a 100644 (file)
@@ -1,3 +1,4 @@
+.\"
 .\" Copyright (c) 1990 Jan-Simon Pendry
 .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 .\" Copyright (c) 1990, 1991 The Regents of the University of California.
 .\" Copyright (c) 1990 Jan-Simon Pendry
 .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 .\" Copyright (c) 1990, 1991 The Regents of the University of California.
@@ -6,11 +7,13 @@
 .\" This code is derived from software contributed to Berkeley by
 .\" Jan-Simon Pendry at Imperial College, London.
 .\"
 .\" This code is derived from software contributed to Berkeley by
 .\" Jan-Simon Pendry at Imperial College, London.
 .\"
-.\" %sccs.include.redist.roff%
+.\" %sccs.include.redist.man%
+.\"
+.\"     @(#)amq.8      5.5 (Berkeley) %G%
 .\"
 .\"
-.\"    @(#)amq.8       5.4 (Berkeley) %G%
+.\" $Id: amq.8,v 5.2.1.2 91/05/07 22:20:44 jsp Alpha $
 .\"
 .\"
-.Dd ""
+.Dd March 16, 1991
 .Dt AMQ 8
 .Os
 .Sh NAME
 .Dt AMQ 8
 .Os
 .Sh NAME
@@ -99,4 +102,6 @@ database.
 <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK.
 .Sh HISTORY
 .Nm Amq
 <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK.
 .Sh HISTORY
 .Nm Amq
+.\" %sccs.include.redist.man%
+.\" %sccs.include.redist.man%
 .At
 .At
index dc444a1..c77a163 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq.c,v 5.2.1.3 91/03/17 17:33:42 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -10,6 +8,11 @@
  * Jan-Simon Pendry at Imperial College, London.
  *
  * %sccs.include.redist.c%
  * Jan-Simon Pendry at Imperial College, London.
  *
  * %sccs.include.redist.c%
+ *
+ *     @(#)amq.c       5.3 (Berkeley) %G%
+ *
+ * $Id: amq.c,v 5.2.1.5 91/05/07 22:18:45 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
@@ -25,8 +28,8 @@ char copyright[] = "\
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char rcsid[] = "$Id: amq.c,v 5.2.1.3 91/03/17 17:33:42 jsp Alpha $";
-static char sccsid[] = "@(#)amq.c      5.2 (Berkeley) %G%";
+static char rcsid[] = "$Id: amq.c,v 5.2.1.5 91/05/07 22:18:45 jsp Alpha $";
+static char sccsid[] = "@(#)amq.c      5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "am.h"
 #endif /* not lint */
 
 #include "am.h"
@@ -359,13 +362,19 @@ Usage: %s [-h host] [[-f] [-m] [-v] [-s]] | [[-u] directory ...]] |\n\
        /*
         * Get address of server
         */
        /*
         * Get address of server
         */
-       if ((hp = gethostbyname(server)) == 0) {
+       if ((hp = gethostbyname(server)) == 0 && strcmp(server, localhost) != 0) {
                fprintf(stderr, "%s: Can't get address of %s\n", progname, server);
                exit(1);
        }
        bzero(&server_addr, sizeof server_addr);
        server_addr.sin_family = AF_INET;
                fprintf(stderr, "%s: Can't get address of %s\n", progname, server);
                exit(1);
        }
        bzero(&server_addr, sizeof server_addr);
        server_addr.sin_family = AF_INET;
-       bcopy((voidp) hp->h_addr, (voidp) &server_addr.sin_addr, sizeof(server_addr.sin_addr));
+       if (hp) {
+               bcopy((voidp) hp->h_addr, (voidp) &server_addr.sin_addr,
+                       sizeof(server_addr.sin_addr));
+       } else {
+               /* fake "localhost" */
+               server_addr.sin_addr.s_addr = htonl(0x7f000001);
+       }
 
        /*
         * Create RPC endpoint
 
        /*
         * Create RPC endpoint
@@ -485,7 +494,7 @@ Usage: %s [-h host] [[-f] [-m] [-v] [-s]] | [[-u] directory ...]] |\n\
                        printf("%s.\n", *spp);
                        free(*spp);
                } else {
                        printf("%s.\n", *spp);
                        free(*spp);
                } else {
-                       fprintf(stderr, "%s: failed to get version infromation\n", progname);
+                       fprintf(stderr, "%s: failed to get version information\n", progname);
                        errs = 1;
                }
        }
                        errs = 1;
                }
        }
index 2e3121a..107f2f7 100644 (file)
@@ -10,7 +10,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Configure   5.2 (Berkeley) %G%
+#      @(#)Configure   5.3 (Berkeley) %G%
+#
+# $Id: Configure,v 5.2.1.2 91/05/07 22:20:26 jsp Alpha $
 #
 echo "Making ./arch and ./os-type executable ..."
 until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
 #
 echo "Making ./arch and ./os-type executable ..."
 until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
index 7380456..9f637a2 100644 (file)
@@ -1,6 +1,4 @@
 #
 #
-# $Id: Makefile.aix3,v 5.2.1.1 90/10/21 22:30:40 jsp Exp $
-#
 # Copyright (c) 1990 Jan-Simon Pendry
 # Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1990 The Regents of the University of California.
 # Copyright (c) 1990 Jan-Simon Pendry
 # Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1990 The Regents of the University of California.
@@ -11,6 +9,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Makefile.aix3       5.2 (Berkeley) %G%
+#      @(#)Makefile.aix3       5.3 (Berkeley) %G%
+#
+# $Id: Makefile.aix3,v 5.2.1.2 91/05/07 22:19:28 jsp Alpha $
 #
 #
+# %sccs.include.redist.sh%
 SYSLIB = -lbsd
 SYSLIB = -lbsd
index 68f4b68..26f7e53 100644 (file)
@@ -1,6 +1,4 @@
 #
 #
-# $Id: Makefile.bsd44,v 5.2.1.1 90/10/21 22:30:45 jsp Exp $
-#
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
@@ -11,9 +9,12 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Makefile.bsd44      5.2 (Berkeley) %G%
+#      @(#)Makefile.bsd44      5.3 (Berkeley) %G%
+#
+# $Id: Makefile.bsd44,v 5.2.1.2 91/05/07 22:19:34 jsp Alpha $
 #
 # Extra Makefile definitions for 4.4 BSD
 #
 
 #
 # Extra Makefile definitions for 4.4 BSD
 #
 
+# %sccs.include.redist.sh%
 RPCLIB = -lrpc
 RPCLIB = -lrpc
index ae663a0..9e24d90 100644 (file)
@@ -1,6 +1,4 @@
 #
 #
-# $Id: Makefile.config,v 5.2.1.4 91/03/03 20:54:39 jsp Alpha $
-#
 # Copyright (c) 1990 Jan-Simon Pendry
 # Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1990 The Regents of the University of California.
 # Copyright (c) 1990 Jan-Simon Pendry
 # Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Makefile.config     5.2 (Berkeley) %G%
+#      @(#)Makefile.config     5.3 (Berkeley) %G%
+#
+# $Id: Makefile.config,v 5.2.1.6 91/05/07 22:20:27 jsp Alpha $
 #
 
 #
 #
 
 #
@@ -88,9 +88,16 @@ HAS_UNION_MAPS = -DHAS_UNION_MAPS
 #
 HAS_REGEXP = -DHAS_REGEXP
 
 #
 HAS_REGEXP = -DHAS_REGEXP
 
+#
+# Make sure that the hostname passed in RPC authentication packets
+# contains a fully qualified domain name.  See nfs_ops.c
+#
+#HAS_NFS_QUALIFIED_NAMES = -DHAS_NFS_QUALIFIED_NAMES
+
 ##############################################################
 # Do NOT edit the following lines
 #
 CONFIG = ${XINCLUDE} ${HAS_NIS_MAPS} ${HAS_FILE_MAPS} ${HAS_HESIOD_MAPS} \
                ${HAS_NDBM_MAPS} ${HAS_MOUNTD_MAPS} ${HAS_PASSWD_MAPS} ${HAS_UNION_MAPS} \
 ##############################################################
 # Do NOT edit the following lines
 #
 CONFIG = ${XINCLUDE} ${HAS_NIS_MAPS} ${HAS_FILE_MAPS} ${HAS_HESIOD_MAPS} \
                ${HAS_NDBM_MAPS} ${HAS_MOUNTD_MAPS} ${HAS_PASSWD_MAPS} ${HAS_UNION_MAPS} \
-               ${HAS_REGEXP}
+# %sccs.include.redist.sh%
+               ${HAS_REGEXP} ${HAS_NFS_QUALIFIED_NAMES}
index 1f1cc29..3970c22 100644 (file)
@@ -1,6 +1,4 @@
 #
 #
-# $Id: Makefile.hpux,v 5.2.1.2 90/12/21 16:42:22 jsp Alpha $
-#
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Makefile.hpux       5.2 (Berkeley) %G%
+#      @(#)Makefile.hpux       5.3 (Berkeley) %G%
+#
+# $Id: Makefile.hpux,v 5.2.1.3 91/05/07 22:19:46 jsp Alpha $
 #
 # Extra Makefile definitions for HP-UX
 #
 #
 # Extra Makefile definitions for HP-UX
 #
@@ -21,4 +21,5 @@
 CC = cc -Wc,-Nd2000
 SYSCC = $(CC)
 # Works only Hp800
 CC = cc -Wc,-Nd2000
 SYSCC = $(CC)
 # Works only Hp800
+# %sccs.include.redist.sh%
 # CC = cc
 # CC = cc
index d52e3eb..19d9633 100644 (file)
@@ -1,6 +1,4 @@
 #
 #
-# $Id: Makefile.irix,v 5.2.1.1 90/10/21 22:30:58 jsp Exp $
-#
 # Copyright (c) 1990 Jan-Simon Pendry
 # Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1990 The Regents of the University of California.
 # Copyright (c) 1990 Jan-Simon Pendry
 # Copyright (c) 1990 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1990 The Regents of the University of California.
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Makefile.irix       5.2 (Berkeley) %G%
+#      @(#)Makefile.irix       5.3 (Berkeley) %G%
+#
+# $Id: Makefile.irix,v 5.2.1.2 91/05/07 22:19:49 jsp Alpha $
 #
 # Extra Makefile definitions for IRIX
 #
 
 DEBUG = #-g -DDEBUG
 CCOPTS = -I/usr/include/sun -I/usr/include/bsd -DIRIX
 #
 # Extra Makefile definitions for IRIX
 #
 
 DEBUG = #-g -DDEBUG
 CCOPTS = -I/usr/include/sun -I/usr/include/bsd -DIRIX
+# %sccs.include.redist.sh%
 RESOLV = -lrpcsvc -lsun -lbsd
 RESOLV = -lrpcsvc -lsun -lbsd
index 680f9a4..b2731c9 100644 (file)
@@ -1 +1 @@
-$Revision: 5.2.1.11 $ of $Date: 91/03/17 18:15:19 $ 5.3Alpha11
+$Revision: 5.2.1.13 $ of $Date: 91/05/07 22:32:38 $ 5.3bsdnet
index a2cb0bf..3687357 100644 (file)
@@ -1,7 +1,5 @@
 #! /bin/sh
 #
 #! /bin/sh
 #
-# $Id: arch,v 5.2.1.3 91/03/03 20:53:24 jsp Alpha $
-#
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
@@ -12,7 +10,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)arch        5.2 (Berkeley) %G%
+#      @(#)arch        5.3 (Berkeley) %G%
+#
+# $Id: arch,v 5.2.1.4 91/05/07 22:20:31 jsp Alpha $
 #
 # Figure out machine architecture
 #
 #
 # Figure out machine architecture
 #
index 813841f..044dfdc 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: misc-aix3.h,v 5.2.1.1 90/10/21 22:30:39 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)misc-aix3.h 5.2 (Berkeley) %G%
+ *     @(#)misc-aix3.h 5.3 (Berkeley) %G%
+ *
+ * $Id: misc-aix3.h,v 5.2.1.2 91/05/07 22:19:26 jsp Alpha $
+ *
  */
 
 struct ufs_args {
  */
 
 struct ufs_args {
index 04b5d27..ae0a539 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: misc-hpux.h,v 5.2.1.1 90/10/21 22:30:54 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)misc-hpux.h 5.2 (Berkeley) %G%
+ *     @(#)misc-hpux.h 5.3 (Berkeley) %G%
+ *
+ * $Id: misc-hpux.h,v 5.2.1.2 91/05/07 22:19:45 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 9639a9c..7ed8e56 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: misc-irix.h,v 5.2.1.1 90/10/21 22:30:57 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)misc-irix.h 5.2 (Berkeley) %G%
+ *     @(#)misc-irix.h 5.3 (Berkeley) %G%
+ *
+ * $Id: misc-irix.h,v 5.2.1.2 91/05/07 22:19:48 jsp Alpha $
+ *
  */
 
 #include <sys/fs/nfs_clnt.h>
  */
 
 #include <sys/fs/nfs_clnt.h>
index bbb1be3..e214b9a 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: misc-next.h,v 5.2 91/01/27 20:12:27 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)misc-next.h 5.2 (Berkeley) %G%
+ *     @(#)misc-next.h 5.3 (Berkeley) %G%
+ *
+ * $Id: misc-next.h,v 5.2.1.1 91/05/07 22:19:52 jsp Alpha $
+ *
  */
 
 #include <nfs/nfs_mount.h>
  */
 
 #include <nfs/nfs_mount.h>
index 60701fe..fabe5e9 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: misc-ultrix.h,v 5.2.1.1 90/10/21 22:31:08 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)misc-ultrix.h       5.2 (Berkeley) %G%
+ *     @(#)misc-ultrix.h       5.3 (Berkeley) %G%
+ *
+ * $Id: misc-ultrix.h,v 5.2.1.2 91/05/07 22:20:01 jsp Alpha $
+ *
  */
 
 #include        <nfs/nfs_gfs.h>
  */
 
 #include        <nfs/nfs_gfs.h>
index 8467d7b..89bbc5b 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mount_aix.c,v 5.2.1.1 90/10/21 22:30:41 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mount_aix.c 5.2 (Berkeley) %G%
+ *     @(#)mount_aix.c 5.3 (Berkeley) %G%
+ *
+ * $Id: mount_aix.c,v 5.2.1.2 91/05/07 22:19:30 jsp Alpha $
+ *
  */
 
 
  */
 
 
index e41a1ca..df2e208 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mount_irix.c,v 5.2.1.1 90/10/21 22:30:59 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mount_irix.c        5.2 (Berkeley) %G%
+ *     @(#)mount_irix.c        5.3 (Berkeley) %G%
+ *
+ * $Id: mount_irix.c,v 5.2.1.2 91/05/07 22:19:50 jsp Alpha $
+ *
  */
 
 
  */
 
 
index 4fd618d..edfcdc1 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mtab_aix.c,v 5.2.1.1 90/10/21 22:30:40 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mtab_aix.c  5.2 (Berkeley) %G%
+ *     @(#)mtab_aix.c  5.3 (Berkeley) %G%
+ *
+ * $Id: mtab_aix.c,v 5.2.1.2 91/05/07 22:19:29 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 3276c37..6b987ef 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mtab_bsd.c,v 5.2.1.1 90/10/21 22:30:46 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mtab_bsd.c  5.2 (Berkeley) %G%
+ *     @(#)mtab_bsd.c  5.3 (Berkeley) %G%
+ *
+ * $Id: mtab_bsd.c,v 5.2.1.2 91/05/07 22:19:35 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 4b0ca09..c079e91 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mtab_file.c,v 5.2.1.2 91/03/03 20:51:24 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mtab_file.c 5.2 (Berkeley) %G%
+ *     @(#)mtab_file.c 5.3 (Berkeley) %G%
+ *
+ * $Id: mtab_file.c,v 5.2.1.3 91/05/07 22:19:58 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index bf351a5..dd76bbf 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mtab_ultrix.c,v 5.2.1.1 90/10/21 22:31:08 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mtab_ultrix.c       5.2 (Berkeley) %G%
+ *     @(#)mtab_ultrix.c       5.3 (Berkeley) %G%
+ *
+ * $Id: mtab_ultrix.c,v 5.2.1.2 91/05/07 22:20:02 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 23b5dc6..9c7af23 100644 (file)
@@ -1,7 +1,5 @@
 #!/bin/sh -
 #
 #!/bin/sh -
 #
-# $Id: newvers.sh,v 5.2.1.2 91/03/17 17:41:03 jsp Alpha $
-#
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
@@ -12,7 +10,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)newvers.sh  5.3 (Berkeley) %G%
+#      @(#)newvers.sh  5.4 (Berkeley) %G%
+#
+# $Id: newvers.sh,v 5.2.1.4 91/05/07 22:20:29 jsp Alpha $
 #
 PATH=/usr/ucb:/bin:/usr/bin:$PATH
 if [ $# -ne 3 ]; then echo "Usage: newvers program arch os" >&2; exit 1; fi
 #
 PATH=/usr/ucb:/bin:/usr/bin:$PATH
 if [ $# -ne 3 ]; then echo "Usage: newvers program arch os" >&2; exit 1; fi
@@ -23,7 +23,7 @@ u=${USER-${LOGNAME-root}}
 h=`hostname`
 #h=`expr "$h" : '\([^.]*\)'`
 t=`date`
 h=`hostname`
 #h=`expr "$h" : '\([^.]*\)'`
 t=`date`
-if [ ! -s "$d../config/RELEASE" -o ! -s "$d../text/COPYRIGHT" ]; then
+if [ ! -s "$d../config/RELEASE"  -o ! -s "$d../text/COPYRIGHT" ]; then
        echo ERROR: config file missing >&2
        exit 1
 fi
        echo ERROR: config file missing >&2
        exit 1
 fi
index ce6b162..478fdd3 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-acis43.h,v 5.2.1.1 90/10/21 22:30:37 jsp Exp $ */
-
 /*
 /*
- * IBM RT ACIS4.3 definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-acis43.h 5.2 (Berkeley) %G%
+ *     @(#)os-acis43.h 5.3 (Berkeley) %G%
+ *
+ * $Id: os-acis43.h,v 5.2.1.2 91/05/07 22:19:24 jsp Alpha $
+ *
+ * IBM RT ACIS4.3 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index db8ee96..b536118 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-aix3.h,v 5.2.1.1 90/10/21 22:30:38 jsp Exp $ */
-
 /*
 /*
- * AIX 3.1 definitions for Amd (automounter)
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-aix3.h   5.2 (Berkeley) %G%
+ *     @(#)os-aix3.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-aix3.h,v 5.2.1.2 91/05/07 22:19:25 jsp Alpha $
+ *
+ * AIX 3.1 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 40c2cb0..43d2c27 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-aux.h,v 5.2.1.1 90/10/21 22:30:42 jsp Exp $ */
-
 /*
 /*
- * A/UX macII definitions for Amd (automounter)
- * Contributed by Julian Onions <jpo@cs.nott.ac.uk>
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-aux.h    5.2 (Berkeley) %G%
+ *     @(#)os-aux.h    5.3 (Berkeley) %G%
+ *
+ * $Id: os-aux.h,v 5.2.1.2 91/05/07 22:19:31 jsp Alpha $
+ *
+ * A/UX macII definitions for Amd (automounter)
+ * Contributed by Julian Onions <jpo@cs.nott.ac.uk>
  */
 
 /*
  */
 
 /*
index 2f0e5c8..00cad63 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-bsd44.h,v 5.2.1.2 90/11/04 23:17:39 jsp Exp $ */
-
 /*
 /*
- * 4.4 BSD definitions for Amd (automounter)
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-bsd44.h  5.2 (Berkeley) %G%
+ *     @(#)os-bsd44.h  5.3 (Berkeley) %G%
+ *
+ * $Id: os-bsd44.h,v 5.2.1.4 91/05/07 22:19:32 jsp Alpha $
+ *
+ * 4.4 BSD definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 0b5bfed..5f1aeb9 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-concentrix.h,v 5.2.1.1 90/10/21 22:30:47 jsp Exp $ */
-
 /*
 /*
- * Alliant Concentrix 5.0.0 definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-concentrix.h     5.2 (Berkeley) %G%
+ *     @(#)os-concentrix.h     5.3 (Berkeley) %G%
+ *
+ * $Id: os-concentrix.h,v 5.2.1.2 91/05/07 22:19:36 jsp Alpha $
+ *
+ * Alliant Concentrix 5.0.0 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index d2677fd..0fa6f7f 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-convex.h,v 5.2.1.1 90/10/21 22:30:48 jsp Exp $ */
-
 /*
 /*
- * Convex C220, version 7.1 definitions for Amd (automounter)
- *         from Eitan Mizrotsky <eitan@shum.huji.ac.il>
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-convex.h 5.2 (Berkeley) %G%
+ *     @(#)os-convex.h 5.3 (Berkeley) %G%
+ *
+ * $Id: os-convex.h,v 5.2.1.2 91/05/07 22:19:37 jsp Alpha $
+ *
+ * Convex C220, version 7.1 definitions for Amd (automounter)
+ *         from Eitan Mizrotsky <eitan@shum.huji.ac.il>
  */
 
 
  */
 
 
index d61019f..d70315c 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-defaults.h,v 5.2.1.2 91/03/03 20:49:12 jsp Alpha $ */
-
 /*
 /*
- * Common OS definitions.  These may be overridden in
- * the OS specific files ("os-foo.h").
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-defaults.h       5.2 (Berkeley) %G%
+ *     @(#)os-defaults.h       5.3 (Berkeley) %G%
+ *
+ * $Id: os-defaults.h,v 5.2.1.4 91/05/07 22:19:38 jsp Alpha $
+ *
+ * Common OS definitions.  These may be overridden in
+ * the OS specific files ("os-foo.h").
  */
 
 /*
  */
 
 /*
  */
 #define        CHARBITS 0377
 #define STRCSPN
  */
 #define        CHARBITS 0377
 #define STRCSPN
-#define        RE_HDR "re.h"
+#define RE_HDR "re.h"
index 3b68547..d11ed2d 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-dgux.h,v 5.2.1.1 90/10/21 22:30:50 jsp Exp $ */
-
 /*
 /*
- * dg/ux definitions for Amd (automounter)
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-dgux.h   5.2 (Berkeley) %G%
+ *     @(#)os-dgux.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-dgux.h,v 5.2.1.2 91/05/07 22:19:39 jsp Alpha $
+ *
+ * dg/ux definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 6f2a59a..d3fa74b 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-fpx4.h,v 5.2.1.1 90/10/21 22:30:51 jsp Exp $ */
-
 /*
 /*
- * Celerity FPX 4.1/2 definitions for Amd (automounter)
- *      from Stephen Pope <scp@grizzly.acl.lanl.gov>
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-fpx4.h   5.2 (Berkeley) %G%
+ *     @(#)os-fpx4.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-fpx4.h,v 5.2.1.2 91/05/07 22:19:40 jsp Alpha $
+ *
+ * Celerity FPX 4.1/2 definitions for Amd (automounter)
+ *      from Stephen Pope <scp@grizzly.acl.lanl.gov>
  */
 
 /*
  */
 
 /*
index 5e749b0..4187e25 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-hcx.h,v 5.2 91/01/27 20:13:28 jsp Alpha $ */
-
 /*
 /*
- * Harris HCX/UX Release 3.0 definitions for Amd (automounter)
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -13,8 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-hcx.h    5.2 (Berkeley) %G%
+ *     @(#)os-hcx.h    5.3 (Berkeley) %G%
  *
  *
+ * $Id: os-hcx.h,v 5.2.1.1 91/05/07 22:19:41 jsp Alpha $
+ *
+ * Harris HCX/UX Release 3.0 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 283e3fa..55670bd 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-hlh42.h,v 5.2.1.2 90/11/04 23:17:40 jsp Exp $ */
-
 /*
 /*
- * HLH OTS definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-hlh42.h  5.2 (Berkeley) %G%
+ *     @(#)os-hlh42.h  5.3 (Berkeley) %G%
+ *
+ * $Id: os-hlh42.h,v 5.2.1.3 91/05/07 22:19:42 jsp Alpha $
+ *
+ * HLH OTS definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index fe3f152..d60a9ce 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-hpux.h,v 5.2.1.4 91/03/03 20:49:43 jsp Alpha $ */
-
 /*
 /*
- * HP/9000 HP-UX definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-hpux.h   5.2 (Berkeley) %G%
+ *     @(#)os-hpux.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-hpux.h,v 5.2.1.5 91/05/07 22:19:44 jsp Alpha $
+ *
+ * HP/9000 HP-UX definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 66afe92..5d89b2e 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-irix.h,v 5.2.1.2 91/03/03 20:50:27 jsp Alpha $ */
-
 /*
 /*
- * IRIX 3.3 definitions for Amd (automounter)
- * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu>
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-irix.h   5.2 (Berkeley) %G%
+ *     @(#)os-irix.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-irix.h,v 5.2.1.4 91/05/07 22:19:47 jsp Alpha $
+ *
+ * IRIX 3.3 definitions for Amd (automounter)
+ * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu>
  */
 
 /*
  */
 
 /*
 #define MOUNT_HELPER_SOURCE "mount_irix.c"
 
 #define        MNTINFO_DEV     "fsid"
 #define MOUNT_HELPER_SOURCE "mount_irix.c"
 
 #define        MNTINFO_DEV     "fsid"
- * %sccs.include.redist.c%
 #define        MNTINFO_PREF    "0x"
 #define        MNTINFO_PREF    "0x"
index f6bf182..eaf3355 100644 (file)
@@ -9,14 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-next.h   5.3 (Berkeley) %G%
- */
-
-/* $Id: os-next.h,v 5.2.1.1 90/10/21 22:31:00 jsp Exp $ */
-
-/*
- * NeXT OS definitions for Amd (automounter)
+ *     @(#)os-next.h   5.4 (Berkeley) %G%
+ *
+ * $Id: os-next.h,v 5.2.1.3 91/05/07 22:19:51 jsp Alpha $
  *
  *
+ * NeXT OS definitions for Amd (automounter)
  * By Bill Trost, Reed College
  * trost%reed@cse.ogi.edu,
  *
  * By Bill Trost, Reed College
  * trost%reed@cse.ogi.edu,
  *
@@ -53,5 +50,4 @@
 /*
  * Where to get NFS definitions
  */
 /*
  * Where to get NFS definitions
  */
- * %sccs.include.redist.c%
 #define NFS_HDR "misc-next.h"
 #define NFS_HDR "misc-next.h"
index 4f69819..f3485cd 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-pyrOSx.h,v 5.2.1.1 90/10/21 22:31:02 jsp Exp $ */
-
 /*
 /*
- * Pyramid OSx definitions for Amd (automounter)
- *             from Stefan Petri <petri@tubsibr.UUCP>
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-pyrOSx.h 5.2 (Berkeley) %G%
+ *     @(#)os-pyrOSx.h 5.3 (Berkeley) %G%
+ *
+ * $Id: os-pyrOSx.h,v 5.2.1.2 91/05/07 22:19:53 jsp Alpha $
+ *
+ * Pyramid OSx definitions for Amd (automounter)
+ *             from Stefan Petri <petri@tubsibr.UUCP>
  */
 
 /*
  */
 
 /*
index d4ae334..7772a6a 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-riscix.h,v 5.2.1.1 90/10/21 22:31:03 jsp Exp $ */
-
 /*
 /*
- * Acorn Archimedes RISC iX definitions for Amd (automounter)
- * Contributed by Piete Brooks.
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-riscix.h 5.2 (Berkeley) %G%
+ *     @(#)os-riscix.h 5.3 (Berkeley) %G%
+ *
+ * $Id: os-riscix.h,v 5.2.1.2 91/05/07 22:19:54 jsp Alpha $
+ *
+ * Acorn Archimedes RISC iX definitions for Amd (automounter)
+ * Contributed by Piete Brooks.
  */
 
 /*
  */
 
 /*
index 9b7a99d..9966407 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-sos3.h,v 5.2.1.1 90/10/21 22:31:04 jsp Exp $ */
-
 /*
 /*
- * SunOS 3.2 definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-sos3.h   5.2 (Berkeley) %G%
+ *     @(#)os-sos3.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-sos3.h,v 5.2.1.2 91/05/07 22:19:56 jsp Alpha $
+ *
+ * SunOS 3.2 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 5e0d884..4c3da09 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-sos4.h,v 5.2.1.2 91/03/03 20:50:41 jsp Alpha $ */
-
 /*
 /*
- * SunOS 4.0 definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-sos4.h   5.2 (Berkeley) %G%
+ *     @(#)os-sos4.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-sos4.h,v 5.2.1.3 91/05/07 22:19:57 jsp Alpha $
+ *
+ * SunOS 4.0 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index 378bda3..2be469b 100644 (file)
@@ -1,7 +1,5 @@
 #!/bin/sh
 #
 #!/bin/sh
 #
-# $Id: os-type,v 5.2.1.3 91/03/03 20:53:30 jsp Alpha $
-#
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
@@ -12,7 +10,9 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)os-type     5.3 (Berkeley) %G%
+#      @(#)os-type     5.4 (Berkeley) %G%
+#
+# $Id: os-type,v 5.2.1.5 91/05/07 22:20:32 jsp Alpha $
 #
 
 #
 #
 
 #
@@ -30,6 +30,7 @@ case "`exec 2>/dev/null; head -2 /etc/motd`" in
 *"HP-UX on the HP"*)           OS=hpux;;
 *"Iris"*)                      OS=irix;;
 *"Ultrix V2."*)                        OS=u2_2;;
 *"HP-UX on the HP"*)           OS=hpux;;
 *"Iris"*)                      OS=irix;;
 *"Ultrix V2."*)                        OS=u2_2;;
+*"Ultrix V3."*)                        OS=u3_0;;
 *"Ultrix-32 V3."*)             OS=u3_0;;
 *"Ultrix Worksystem V2."*)     OS=u3_0;;
 *"ULTRIX V4."*)                        OS=u4_0;;
 *"Ultrix-32 V3."*)             OS=u3_0;;
 *"Ultrix Worksystem V2."*)     OS=u3_0;;
 *"ULTRIX V4."*)                        OS=u4_0;;
@@ -85,7 +86,6 @@ case "`exec 2>/dev/null; head -2 /etc/motd`" in
                                        OS=irix
                                else
                                        case "`(sh ../config/arch)2>/dev/null`" in
                                        OS=irix
                                else
                                        case "`(sh ../config/arch)2>/dev/null`" in
-                                       powernode) OS=utx32;;
                                        ibm032)    OS=acis43;;
                                        aviion)    OS=dgux;;
                                        *)         OS=unknown;;
                                        ibm032)    OS=acis43;;
                                        aviion)    OS=dgux;;
                                        *)         OS=unknown;;
@@ -95,5 +95,4 @@ esac
 
 echo "#        ... OS appears to be \"${OS}\"" >&2
 echo "${OS}"
 
 echo "#        ... OS appears to be \"${OS}\"" >&2
 echo "${OS}"
- * %sccs.include.redist.sh%
 exit 0
 exit 0
index 2218c6e..9626c9e 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-u2_2.h,v 5.2.1.2 90/11/04 23:17:43 jsp Exp $ */
-
 /*
 /*
- * Ultrix 2.2 definitions for Amd (automounter)
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-u2_2.h   5.2 (Berkeley) %G%
+ *     @(#)os-u2_2.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-u2_2.h,v 5.2.1.3 91/05/07 22:19:59 jsp Alpha $
+ *
+ * Ultrix 2.2 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index eaba980..3769108 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-u3_0.h,v 5.2.1.2 90/11/04 23:17:44 jsp Exp $ */
-
 /*
 /*
- * Ultrix 3.0 definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-u3_0.h   5.2 (Berkeley) %G%
+ *     @(#)os-u3_0.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-u3_0.h,v 5.2.1.3 91/05/07 22:20:03 jsp Alpha $
+ *
+ * Ultrix 3.0 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index cb2f19b..13c51e3 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-u4_0.h,v 5.2 91/03/03 20:22:45 jsp Alpha $ */
-
 /*
 /*
- * Ultrix 4.0 definitions for Amd (automounter)
- *             from Chris Lindblad <cjl@ai.mit.edu>
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-u4_0.h   5.2 (Berkeley) %G%
+ *     @(#)os-u4_0.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-u4_0.h,v 5.2.1.1 91/05/07 22:20:04 jsp Alpha $
+ *
+ * Ultrix 4.0 definitions for Amd (automounter)
+ *             from Chris Lindblad <cjl@ai.mit.edu>
  */
 
 /*
  * Does the compiler grok void *
  */
  */
 
 /*
  * Does the compiler grok void *
  */
-#undef VOIDP
+#ifdef __STDC__
+#define VOIDP
+#else
+#undef VOIDP
+#endif
 
 /*
  * Which version of the Sun RPC library we are using
 
 /*
  * Which version of the Sun RPC library we are using
index 9fb2c15..7dddf97 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id: os-umax43.h,v 5.2.1.1 90/10/21 22:31:10 jsp Exp $ */
-
 /*
 /*
- * UMAX 4.3 definitions for Amd (automounter)
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -13,7 +9,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-umax43.h 5.2 (Berkeley) %G%
+ *     @(#)os-umax43.h 5.3 (Berkeley) %G%
+ *
+ * $Id: os-umax43.h,v 5.2.1.2 91/05/07 22:20:05 jsp Alpha $
+ *
+ * UMAX 4.3 definitions for Amd (automounter)
  */
 
 /*
  */
 
 /*
index ca4de33..25be5c0 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-utek.h,v 5.2 91/03/03 20:22:54 jsp Alpha $ */
-
 /*
 /*
- * Utek 4.0  definitions for Amd (automounter)
- *     from Bill Trost <trost%reed@cse.ogi.edu>
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-utek.h   5.2 (Berkeley) %G%
+ *     @(#)os-utek.h   5.3 (Berkeley) %G%
+ *
+ * $Id: os-utek.h,v 5.2.1.1 91/05/07 22:20:06 jsp Alpha $
+ *
+ * Utek 4.0  definitions for Amd (automounter)
+ *     from Bill Trost <trost%reed@cse.ogi.edu>
  */
 
 #define        UTEK
  */
 
 #define        UTEK
index ad9e57b..268275a 100644 (file)
@@ -13,7 +13,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-utx32.h  5.2 (Berkeley) %G%
+ *     @(#)os-utx32.h  5.3 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
index 420c984..cb5127e 100644 (file)
@@ -1,9 +1,4 @@
-/* $Id: os-xinu43.h,v 5.2.1.2 90/11/04 23:17:45 jsp Exp $ */
-
 /*
 /*
- * mt Xinu 4.3 (MORE/bsd) definitions for Amd (automounter)
- * Should work on both Vax and HP ...
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -14,7 +9,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)os-xinu43.h 5.2 (Berkeley) %G%
+ *     @(#)os-xinu43.h 5.3 (Berkeley) %G%
+ *
+ * $Id: os-xinu43.h,v 5.2.1.3 91/05/07 22:20:07 jsp Alpha $
+ *
+ * mt Xinu 4.3 (MORE/bsd) definitions for Amd (automounter)
+ * Should work on both Vax and HP ...
  */
 
 /*
  */
 
 /*
index efa211a..f5655f5 100644 (file)
@@ -11,7 +11,7 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)Makefile    5.2 (Berkeley) %G%
+#      @(#)Makefile    5.3 (Berkeley) %G%
 #
 
 PROG = amdref
 #
 
 PROG = amdref
index 8876d94..f5106df 100644 (file)
@@ -1,7 +1,5 @@
 \input texinfo         @c -*-texinfo-*-
 @c
 \input texinfo         @c -*-texinfo-*-
 @c
-@c $Id: amdref.texinfo,v 5.2.1.4 91/03/03 20:15:58 jsp Alpha Locker: jsp $
-@c
 @c Copyright (c) 1989 Jan-Simon Pendry
 @c Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 @c Copyright (c) 1989 The Regents of the University of California.
 @c Copyright (c) 1989 Jan-Simon Pendry
 @c Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 @c Copyright (c) 1989 The Regents of the University of California.
 @c This code is derived from software contributed to Berkeley by
 @c Jan-Simon Pendry at Imperial College, London.
 @c
 @c This code is derived from software contributed to Berkeley by
 @c Jan-Simon Pendry at Imperial College, London.
 @c
-@c %sccs.include.redist.texinfo%
+@c Redistribution and use in source and binary forms, with or without
+@c modification, are permitted provided that the following conditions
+@c are met:
+@c 1. Redistributions of source code must retain the above copyright
+@c    notice, this list of conditions and the following disclaimer.
+@c 2. Redistributions in binary form must reproduce the above copyright
+@c    notice, this list of conditions and the following disclaimer in the
+@c    documentation and/or other materials provided with the distribution.
+@c 3. All advertising materials mentioning features or use of this software
+@c    must display the following acknowledgement:
+@c      This product includes software developed by the University of
+@c      California, Berkeley and its contributors.
+@c 4. Neither the name of the University nor the names of its contributors
+@c    may be used to endorse or promote products derived from this software
+@c    without specific prior written permission.
 @c
 @c
-@c     @(#)amdref.texinfo      1.2 (Berkeley) %G%
+@c THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+@c ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+@c IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+@c ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+@c FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+@c DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+@c OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+@c HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+@c LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+@c OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+@c
+@c     @(#)amdref.texinfo      1.3 (Berkeley) %G%
+@c
+@c $Id: amdref.texinfo,v 5.2.1.6 91/05/07 22:20:47 jsp Alpha $
 @c
 @c
-
-@c @setfilename ../info/amd
 @setfilename /usr/local/emacs/info/amd
 @setfilename /usr/local/emacs/info/amd
-@c @smallbook
 @tex
 \overfullrule=0pt
 @end tex
 
 @settitle 4.4 BSD Automounter Reference Manual
 @tex
 \overfullrule=0pt
 @end tex
 
 @settitle 4.4 BSD Automounter Reference Manual
-@c
 @titlepage
 @sp 6
 @center @titlefont{Amd}
 @titlepage
 @sp 6
 @center @titlefont{Amd}
@@ -41,7 +62,6 @@
 @center Last updated March 1991
 @center Documentation for software revision 5.3 Alpha
 @page
 @center Last updated March 1991
 @center Documentation for software revision 5.3 Alpha
 @page
-@c
 Copyright @copyright{} 1989 Jan-Simon Pendry
 @sp -1
 Copyright @copyright{} 1989 Imperial College of Science, Technology & Medicine
 Copyright @copyright{} 1989 Jan-Simon Pendry
 @sp -1
 Copyright @copyright{} 1989 Imperial College of Science, Technology & Medicine
@@ -2022,7 +2042,8 @@ separated strings.
 For example:
 
 @example
 For example:
 
 @example
-pub      type:=nfsx;rhost:=gould;rfs:=/public,/,graphics,usenet
+pub      type:=nfsx;rhost:=gould;\
+               rfs:=/public,/,graphics,usenet;fs:=${autodir}/${rhost}/root
 @end example
 
 The first string defines the root of the tree, and is applied as a
 @end example
 
 The first string defines the root of the tree, and is applied as a
@@ -2034,6 +2055,10 @@ ensure a consistent layout of a tree of mounts.
 Here, the @emph{three} filesystems, @samp{/public},
 @samp{/public/graphics} and @samp{/public/usenet}, would be mounted.@refill
 
 Here, the @emph{three} filesystems, @samp{/public},
 @samp{/public/graphics} and @samp{/public/usenet}, would be mounted.@refill
 
+A local mount point, @code{$@{fs@}}, @emph{must} be specified.  The
+default local mount point will not work correctly in the general case.
+A suggestion is to use @samp{fs:=$@{autodir@}/$@{rhost@}/root}.@refill
+
 @node     Unix Filesystem, Program Filesystem, Network Filesystem Group, Filesystem Types
 @comment  node-name,  next,  previous,  up
 @section Unix Filesystem (@samp{type:=ufs})
 @node     Unix Filesystem, Program Filesystem, Network Filesystem Group, Filesystem Types
 @comment  node-name,  next,  previous,  up
 @section Unix Filesystem (@samp{type:=ufs})
@@ -4124,14 +4149,14 @@ hidden when accessed via the automount point (conventionally @samp{/vol}).
 A mount-map for @samp{/vol} to achieve this would look like:
 
 @example
 A mount-map for @samp{/vol} to achieve this would look like:
 
 @example
-/defaults   rfs:=/vol;sublink:=$@{key@};rhost:=fserver;type:=link
+/defaults   sublink:=$@{/key@};rhost:=fserver;type:=link
 tex         type:=auto;fs:=$@{map@};pref:=$@{key@}/
 tex         type:=auto;fs:=$@{map@};pref:=$@{key@}/
-tex/fonts   host!=fserver;type:=nfs \
-            host==fserver;fs:=/usr/local 
-tex/lib     host!=fserver;type:=nfs \
-            host==fserver;fs:=/usr/local
-tex/bin     -sublink:=$@{key@}/$@{arch2@} host!=fserver;type:=nfs \
-            host:=fserver;fs:=/usr/local
+tex/fonts   host!=fserver;type:=nfs;rfs:=/vol/tex \
+            host==fserver;fs:=/usr/local/tex
+tex/lib     host!=fserver;type:=nfs;rfs:=/vol/tex \
+            host==fserver;fs:=/usr/local/tex
+tex/bin     -sublink:=$@{/key@}/$@{arch@} host!=fserver;type:=nfs;rfs:=/vol/tex \
+            host:=fserver;fs:=/usr/local/tex
 @end example
 
 When @samp{/vol/tex/bin} is referenced, the current machine architecture
 @end example
 
 When @samp{/vol/tex/bin} is referenced, the current machine architecture
index 4ca93b8..1e5f648 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    5.2 (Berkeley) %G%
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 PROG=  fsinfo
 NOMAN= true
 
 PROG=  fsinfo
 NOMAN= true
@@ -6,6 +6,9 @@ SRCS=   fsinfo.c fsi_gram.c fsi_lex.c \
        fsi_util.c fsi_analyze.c fsi_dict.c \
        wr_atab.c wr_bparam.c wr_dumpset.c \
        wr_exportfs.c wr_fstab.c
        fsi_util.c fsi_analyze.c fsi_dict.c \
        wr_atab.c wr_bparam.c wr_dumpset.c \
        wr_exportfs.c wr_fstab.c
+CLEANFILES= \
+       fsi_gram.c y.tab.c fsi_gram.h y.tab.h \
+       fsi_lex.c lex.yy.c y.output
 CFLAGS+=-I.
 CFLAGS+=-I${.CURDIR}/../include
 CFLAGS+=-I${.CURDIR}/../config
 CFLAGS+=-I.
 CFLAGS+=-I${.CURDIR}/../include
 CFLAGS+=-I${.CURDIR}/../config
@@ -22,8 +25,6 @@ fsi_lex.c: ../fsinfo/fsi_lex.l
        ${LEX} ${.CURDIR}/fsi_lex.l
        mv lex.yy.c fsi_lex.c
 
        ${LEX} ${.CURDIR}/fsi_lex.l
        mv lex.yy.c fsi_lex.c
 
-CLEANFILES = fsi_gram.c y.tab.c fsi_gram.h y.tab.h fsi_lex.c lex.yy.c y.output
-
 .PATH: ${.CURDIR}/../config
 .include "../../Makefile.inc"
 .include <bsd.prog.mk>
 .PATH: ${.CURDIR}/../config
 .include "../../Makefile.inc"
 .include <bsd.prog.mk>
index 381381a..e1fa992 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsi_analyze.c,v 5.2.1.2 90/12/21 16:46:44 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,9 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsi_analyze.c       5.2 (Berkeley) %G%
+ *     @(#)fsi_analyze.c       5.3 (Berkeley) %G%
+ *
+ * $Id: fsi_analyze.c,v 5.2.1.3 91/05/07 22:19:06 jsp Alpha $
  *
  */
 
  *
  */
 
index 33942b1..ff28948 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsi_data.h,v 5.2.1.2 90/12/21 16:42:16 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsi_data.h  5.2 (Berkeley) %G%
+ *     @(#)fsi_data.h  5.3 (Berkeley) %G%
+ *
+ * $Id: fsi_data.h,v 5.2.1.3 91/05/07 22:19:16 jsp Alpha $
+ *
  */
 
 typedef struct auto_tree auto_tree;
  */
 
 typedef struct auto_tree auto_tree;
index d85194a..2d0fdc9 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsi_dict.c,v 5.2 90/10/21 22:34:21 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsi_dict.c  5.2 (Berkeley) %G%
+ *     @(#)fsi_dict.c  5.3 (Berkeley) %G%
+ *
+ * $Id: fsi_dict.c,v 5.2.1.1 91/05/07 22:19:08 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 3e8fa2a..3f175b8 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsi_gram.y,v 5.2.1.2 90/12/21 16:46:46 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsi_gram.y  5.2 (Berkeley) %G%
+ *     @(#)fsi_gram.y  5.3 (Berkeley) %G%
+ *
+ * $Id: fsi_gram.y,v 5.2.1.3 91/05/07 22:19:02 jsp Alpha $
+ *
  */
 
 %{
  */
 
 %{
index cb1d0d7..b52ed2f 100644 (file)
@@ -1,7 +1,5 @@
 %{
 /*
 %{
 /*
- * $Id: fsi_lex.l,v 5.2.1.2 90/12/21 16:41:55 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsi_lex.l   5.2 (Berkeley) %G%
+ *     @(#)fsi_lex.l   5.3 (Berkeley) %G%
+ *
+ * $Id: fsi_lex.l,v 5.2.1.3 91/05/07 22:19:03 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 0900e9d..759af79 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsi_util.c,v 5.2.1.2 90/12/21 16:41:57 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -8,7 +6,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsi_util.c  5.2 (Berkeley) %G%
+ *     @(#)fsi_util.c  5.3 (Berkeley) %G%
+ *
+ * $Id: fsi_util.c,v 5.2.1.3 91/05/07 22:19:05 jsp Alpha $
+ *
  */
 
 #include "../fsinfo/fsinfo.h"
  */
 
 #include "../fsinfo/fsinfo.h"
index 40fbea0..f2cb177 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsinfo.c,v 5.2.1.2 90/12/21 16:46:47 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsinfo.c    5.2 (Berkeley) %G%
+ *     @(#)fsinfo.c    5.3 (Berkeley) %G%
+ *
+ * $Id: fsinfo.c,v 5.2.1.3 91/05/07 22:19:01 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 9d1bb7c..ad9c0cf 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fsinfo.h,v 5.2.1.4 91/03/17 17:51:29 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fsinfo.h    5.2 (Berkeley) %G%
+ *     @(#)fsinfo.h    5.3 (Berkeley) %G%
+ *
+ * $Id: fsinfo.h,v 5.2.1.5 91/05/07 22:19:15 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 5f1bbdf..d8742ba 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: wr_atab.c,v 5.2.1.2 90/12/21 16:46:49 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)wr_atab.c   5.2 (Berkeley) %G%
+ *     @(#)wr_atab.c   5.3 (Berkeley) %G%
+ *
+ * $Id: wr_atab.c,v 5.2.1.3 91/05/07 22:19:09 jsp Alpha $
+ *
  */
 
 #include "../fsinfo/fsinfo.h"
  */
 
 #include "../fsinfo/fsinfo.h"
index 410717b..c460166 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: wr_bparam.c,v 5.2.1.2 90/12/21 16:46:49 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)wr_bparam.c 5.2 (Berkeley) %G%
+ *     @(#)wr_bparam.c 5.3 (Berkeley) %G%
+ *
+ * $Id: wr_bparam.c,v 5.2.1.3 91/05/07 22:19:10 jsp Alpha $
+ *
  */
 
 #include "../fsinfo/fsinfo.h"
  */
 
 #include "../fsinfo/fsinfo.h"
index 68cbdd6..46a6a79 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: wr_dumpset.c,v 5.2.1.2 90/12/21 16:46:50 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)wr_dumpset.c        5.2 (Berkeley) %G%
+ *     @(#)wr_dumpset.c        5.3 (Berkeley) %G%
+ *
+ * $Id: wr_dumpset.c,v 5.2.1.3 91/05/07 22:19:11 jsp Alpha $
+ *
  */
 
 #include "../fsinfo/fsinfo.h"
  */
 
 #include "../fsinfo/fsinfo.h"
index 638d372..73baa11 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: wr_exportfs.c,v 5.2.1.2 90/12/21 16:46:51 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)wr_exportfs.c       5.2 (Berkeley) %G%
+ *     @(#)wr_exportfs.c       5.3 (Berkeley) %G%
+ *
+ * $Id: wr_exportfs.c,v 5.2.1.3 91/05/07 22:19:13 jsp Alpha $
+ *
  */
 
 #include "../fsinfo/fsinfo.h"
  */
 
 #include "../fsinfo/fsinfo.h"
index 48a5b6e..317d5d6 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: wr_fstab.c,v 5.2.1.2 90/12/21 16:46:52 jsp Alpha $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)wr_fstab.c  5.2 (Berkeley) %G%
+ *     @(#)wr_fstab.c  5.3 (Berkeley) %G%
+ *
+ * $Id: wr_fstab.c,v 5.2.1.3 91/05/07 22:19:14 jsp Alpha $
+ *
  */
 
 #include "../fsinfo/fsinfo.h"
  */
 
 #include "../fsinfo/fsinfo.h"
index 6e46d74..cb45640 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: am.h,v 5.2.1.5 91/03/17 17:38:03 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)am.h        5.2 (Berkeley) %G%
+ *     @(#)am.h        5.3 (Berkeley) %G%
+ *
+ * $Id: am.h,v 5.2.1.8 91/05/07 22:19:18 jsp Alpha $
+ *
  */
 
 #include "config.h"
  */
 
 #include "config.h"
@@ -229,8 +230,10 @@ extern char *inet_dquad P((char*, unsigned long));
 extern void init_map P((am_node*, char*));
 extern void insert_am P((am_node*, am_node*));
 extern void ins_que P((qelem*, qelem*));
 extern void init_map P((am_node*, char*));
 extern void insert_am P((am_node*, am_node*));
 extern void ins_que P((qelem*, qelem*));
+extern int make_nfs_auth P((void));
 extern void make_root_node(P_void);
 extern int make_rpc_packet P((char*, int, u_long, struct rpc_msg*, voidp, xdrproc_t, AUTH*));
 extern void make_root_node(P_void);
 extern int make_rpc_packet P((char*, int, u_long, struct rpc_msg*, voidp, xdrproc_t, AUTH*));
+extern void map_flush_srvr P((fserver*));
 extern void mapc_add_kv P((mnt_map*, char*, char*));
 extern mnt_map* mapc_find P((char*, char*));
 extern void mapc_free P((mnt_map*));
 extern void mapc_add_kv P((mnt_map*, char*, char*));
 extern mnt_map* mapc_find P((char*, char*));
 extern void mapc_free P((mnt_map*));
index 14b5d59..490910e 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: config.h,v 5.2.1.3 91/03/17 17:38:39 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)config.h    5.1 (Berkeley) %G%
+ *     @(#)config.h    5.2 (Berkeley) %G%
+ *
+ * $Id: config.h,v 5.2.1.4 91/05/07 22:19:20 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index d41d329..3173a96 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: fstype.h,v 5.2.1.2 90/11/04 23:17:38 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)fstype.h    5.2 (Berkeley) %G%
+ *     @(#)fstype.h    5.3 (Berkeley) %G%
+ *
+ * $Id: fstype.h,v 5.2.1.3 91/05/07 22:19:21 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index f29ea5a..a33c2c9 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: uwait.h,v 5.2.1.1 90/10/21 22:30:35 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)uwait.h     5.2 (Berkeley) %G%
+ *     @(#)uwait.h     5.3 (Berkeley) %G%
+ *
+ * $Id: uwait.h,v 5.2.1.2 91/05/07 22:19:23 jsp Alpha $
+ *
  */
 
 #if defined(mc68k) || defined(mc68000) || defined(mc68020) || defined(sparc) || defined(hp9000s300) || defined(hp9000s800)
  */
 
 #if defined(mc68k) || defined(mc68000) || defined(mc68020) || defined(sparc) || defined(hp9000s300) || defined(hp9000s800)
index 79c75e4..ca5c69d 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    5.3 (Berkeley) %G%
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 PROG=  mk-amd-map
 NOMAN= true
 
 PROG=  mk-amd-map
 NOMAN= true
index 184fbb6..97c55ef 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mk-amd-map.c,v 5.2.1.2 91/03/17 17:37:27 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,9 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mk-amd-map.c        5.3 (Berkeley) %G%
+ *     @(#)mk-amd-map.c        5.4 (Berkeley) %G%
+ *
+ * $Id: mk-amd-map.c,v 5.2.1.4 91/05/07 22:18:47 jsp Alpha $
  */
 
 /*
  */
 
 /*
@@ -27,8 +27,8 @@ char copyright[] = "\
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char rcsid[] = "$Id: mk-amd-map.c,v 5.2.1.2 91/03/17 17:37:27 jsp Alpha $";
-static char sccsid[] = "@(#)mk-amd-map.c       5.3 (Berkeley) %G%";
+static char rcsid[] = "$Id: mk-amd-map.c,v 5.2.1.4 91/05/07 22:18:47 jsp Alpha $";
+static char sccsid[] = "@(#)mk-amd-map.c       5.4 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "am.h"
 #endif /* not lint */
 
 #include "am.h"
@@ -77,6 +77,7 @@ FILE *fp;
                                int ch;
                                buf += len - 2;
                                size -= len - 2;
                                int ch;
                                buf += len - 2;
                                size -= len - 2;
+                               *buf = '\n'; buf[1] = '\0';
                                /*
                                 * Skip leading white space on next line
                                 */
                                /*
                                 * Skip leading white space on next line
                                 */
@@ -204,7 +205,7 @@ char *argv[];
        char *map;
        int rc = 0;
        DBM *mapd;
        char *map;
        int rc = 0;
        DBM *mapd;
-       char *maptmp = "dbmXXXXXX";
+       static char maptmp[] = "dbmXXXXXX";
        char maptpag[16], maptdir[16];
        char *mappag, *mapdir;
        int len;
        char maptpag[16], maptdir[16];
        char *mappag, *mapdir;
        int len;
@@ -318,5 +319,4 @@ main()
        fputs("mk-amd-map: This system does not support hashed database files\n", stderr);
        exit(1);
 }
        fputs("mk-amd-map: This system does not support hashed database files\n", stderr);
        exit(1);
 }
- * %sccs.include.redist.c%
 #endif /* HAS_DATABASE */
 #endif /* HAS_DATABASE */
index 53e4156..0e21ba8 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq.h,v 5.2.1.2 91/03/17 17:39:26 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amq.h       5.2 (Berkeley) %G%
+ *     @(#)amq.h       5.3 (Berkeley) %G%
+ *
+ * $Id: amq.h,v 5.2.1.3 91/05/07 22:18:49 jsp Alpha $
+ *
  */
 
 #define AMQ_STRLEN 1024
  */
 
 #define AMQ_STRLEN 1024
index 76824dd..684d366 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq.x,v 5.2.1.2 91/03/17 17:39:36 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amq.x       5.2 (Berkeley) %G%
+ *     @(#)amq.x       5.3 (Berkeley) %G%
+ *
+ * $Id: amq.x,v 5.2.1.3 91/05/07 22:18:48 jsp Alpha $
+ *
  */
 
 /*
  */
 
 /*
index 37b76ce..d12ad97 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq_clnt.c,v 5.2.1.2 91/03/17 17:39:38 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amq_clnt.c  5.2 (Berkeley) %G%
+ *     @(#)amq_clnt.c  5.3 (Berkeley) %G%
+ *
+ * $Id: amq_clnt.c,v 5.2.1.3 91/05/07 22:18:52 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 0d28978..3285581 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq_svc.c,v 5.2.1.2 91/03/17 17:39:38 jsp Alpha $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amq_svc.c   5.2 (Berkeley) %G%
+ *     @(#)amq_svc.c   5.3 (Berkeley) %G%
+ *
+ * $Id: amq_svc.c,v 5.2.1.3 91/05/07 22:18:53 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 99192dd..e4a1f71 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: amq_xdr.c,v 5.2.1.1 90/10/21 22:30:16 jsp Exp $
- *
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
  * Copyright (c) 1990 Jan-Simon Pendry
  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1990 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)amq_xdr.c   5.2 (Berkeley) %G%
+ *     @(#)amq_xdr.c   5.3 (Berkeley) %G%
+ *
+ * $Id: amq_xdr.c,v 5.2.1.2 91/05/07 22:18:51 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 6d26b1d..7a5151a 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 1990 Jan-Simon Pendry
+ * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Jan-Simon Pendry at Imperial College, London.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)mount.h     5.3 (Berkeley) %G%
+ *
+ * $Id: mount.h,v 5.2.1.2 91/05/07 22:18:54 jsp Alpha $
+ *
+ */
+
 #define MNTPATHLEN 1024
 #define MNTNAMLEN 255
 #define FHSIZE 32
 #define MNTPATHLEN 1024
 #define MNTNAMLEN 255
 #define FHSIZE 32
index 3b6bed6..bc8a6b0 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: mount_xdr.c,v 5.2.1.1 90/10/21 22:30:21 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)mount_xdr.c 5.2 (Berkeley) %G%
+ *     @(#)mount_xdr.c 5.3 (Berkeley) %G%
+ *
+ * $Id: mount_xdr.c,v 5.2.1.2 91/05/07 22:18:55 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index bfe5534..43f522a 100644 (file)
@@ -1,4 +1,19 @@
-/* $Id: nfs_prot.h,v 5.2.1.1 90/10/21 22:30:23 jsp Exp $ */
+/*
+ * Copyright (c) 1990 Jan-Simon Pendry
+ * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Jan-Simon Pendry at Imperial College, London.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)nfs_prot.h  5.3 (Berkeley) %G%
+ *
+ * $Id: nfs_prot.h,v 5.2.1.2 91/05/07 22:18:56 jsp Alpha $
+ *
+ */
 
 #define        xdr_nfsstat xdr_enum
 #define        xdr_ftype xdr_enum
 
 #define        xdr_nfsstat xdr_enum
 #define        xdr_ftype xdr_enum
index c5a6238..4b2d185 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: nfs_prot_svc.c,v 5.2.1.1 90/10/21 22:30:25 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfs_prot_svc.c      5.2 (Berkeley) %G%
+ *     @(#)nfs_prot_svc.c      5.3 (Berkeley) %G%
+ *
+ * $Id: nfs_prot_svc.c,v 5.2.1.2 91/05/07 22:18:58 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index 5dc0628..ea2b10a 100644 (file)
@@ -1,6 +1,4 @@
 /*
 /*
- * $Id: nfs_prot_xdr.c,v 5.2.1.1 90/10/21 22:30:26 jsp Exp $
- *
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
  * Copyright (c) 1989 Jan-Simon Pendry
  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  * Copyright (c) 1989 The Regents of the University of California.
@@ -11,7 +9,10 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfs_prot_xdr.c      5.2 (Berkeley) %G%
+ *     @(#)nfs_prot_xdr.c      5.3 (Berkeley) %G%
+ *
+ * $Id: nfs_prot_xdr.c,v 5.2.1.2 91/05/07 22:18:59 jsp Alpha $
+ *
  */
 
 #include "am.h"
  */
 
 #include "am.h"
index bd7c954..213111b 100644 (file)
@@ -1,10 +1,3 @@
-/*-
- * Copyright (c) 1990 Jan-Simon Pendry
- * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * %sccs.include.redist.c%
- *
- *     @(#)COPYRIGHT   1.3 (Berkeley) %G%
- */
+Copyright (c) 1990 Jan-Simon Pendry
+Copyright (c) 1990 Imperial College of Science, Technology & Medicine
+Copyright (c) 1990 The Regents of the University of California.
index fada06a..2576ec4 100644 (file)
@@ -1,9 +1,5 @@
 #!/bin/sh -
 #
 #!/bin/sh -
 #
-# Start amd
-#
-# $Id: amd.start.ex,v 5.2.1.1 90/10/21 22:31:39 jsp Exp $
-#
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 # Copyright (c) 1989 Jan-Simon Pendry
 # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
 # Copyright (c) 1989 The Regents of the University of California.
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#      @(#)amd.start.ex        5.2 (Berkeley) %G%
+#      @(#)amd.start.ex        5.3 (Berkeley) %G%
+#
+# Start amd
+#
+# $Id: amd.start.ex,v 5.2.1.3 91/05/07 22:20:41 jsp Alpha $
 #
 #
-PATH=/usr/local/etc:/bin:/usr/bin:/usr/ucb:$PATH export PATH
+PATH=/usr/sbin:/bin:/usr/bin:$PATH export PATH
 
 #
 # Either name of logfile or "syslog"
 #
 #LOGFILE=syslog
 
 #
 # Either name of logfile or "syslog"
 #
 #LOGFILE=syslog
-LOGFILE=/var/adm/am.log
+LOGFILE=/var/run/amd.log
 
 #
 # Figure out whether domain name is in host name
 
 #
 # Figure out whether domain name is in host name
@@ -48,14 +48,14 @@ syslog)
        ;;
 esac
 
        ;;
 esac
 
-cd /usr/local/etc
+cd /usr/sbin
 #
 # -r           restart
 # -d dmn       local domain
 # -w wait      wait between unmount attempts
 # -l log       logfile or "syslog"
 #
 #
 # -r           restart
 # -d dmn       local domain
 # -w wait      wait between unmount attempts
 # -l log       logfile or "syslog"
 #
-eval nice --4 ./amd -p > /etc/amd.pid -r $dmn -w 240 -l "$LOGFILE" \
-       /homes amd.homes -cache=inc \
-       /home amd.home -cache=inc \
-       /vol amd.vol -cache=inc
+eval nice --4 ./amd -p > /var/run/amd.pid -r $dmn -w 240 -l "$LOGFILE" \
+       /homes amd.homes -cache:=inc \
+       /home amd.home -cache:=inc \
+       /vol amd.vol -cache:=inc