From: rick@groo.msc.cornell.edu (Rick Cochran)
Subject: Re: AIX 3.2.2 and amd
Organization: Cornell Materials Science Center
Date: Wed, 2 Sep 1992 12:57:39 GMT

In article <5396@unixhub.SLAC.Stanford.EDU>, joann@ariadne.SLAC.Stanford.EDU (Jo Ann Malina) writes:
|> Last March, we got a fix (ix22312) that allowed amd to run on AIX
|> 3.1 without freezing up. This was a kernel patch, and one was
|> provided for AIX 3.1.5 and 3.1.7, but not for AIX 3.2.
|> 
|> We are now trying to bring up 3.2.2, and are having trouble with
|> amd. Is anyone else running it? Does it seem to start up okay and
|> then "decay" after it's been left idle (the daemon goes away and
|> the automatic mounts no longer occur). Will this fix be added to
|> 3.2 at some point, or does it require a new one?
|> 
|> *) *) *) *) *) *) *) *) *) *) *)!(* (* (* (* (* (* (* (* (* (* (* (* (*
|> Jo Ann Malina, Stanford Linear Accelerator Center
|> joann@unixhub.slac.stanford.edu  -or-  415/926-2846
|> Neither Stanford nor the DOE would be caught dead with these opinions.
|> Nor do they consult me when formulating theirs.

In addition to Charles' latest patches you might want to look at the
selection of patches for amd 5.3beta below.

I hope that you know that installing 3.2.2 will break all your debuggers.
Yes, the very patch which fixes amd does it.  You will need to get U406391.
The PMR is 4x964.

While you're at it, there are many other fixes to 3.2 available at this time.
So far, these fixes haven't broken anything else that I know of.

-- 
|Rick Cochran		  607-255-7223		     rick@msc.cornell.edu|
|Cornell Materials Science Center		     rick@crnlmsc2.bitnet|
|E20 Clark Hall, Ithaca, N.Y. 14853	     cornell!msc.cornell.edu!rick|

*** amd/nfsx_ops.c.orig	Sun Feb  9 10:08:29 1992
--- amd/nfsx_ops.c	Tue Apr 28 10:05:15 1992
***************
*** 109,115 ****
  		*ptr = '\0';
  	deslashify(fo->opt_fs);
  	len = strlen(fo->opt_fs);
! 	fo->opt_fs = xrealloc(fo->opt_fs, len + 1);
  	ptr = fo->opt_fs + len;
  	/*
  	 * Make unique...
--- 109,115 ----
  		*ptr = '\0';
  	deslashify(fo->opt_fs);
  	len = strlen(fo->opt_fs);
! 	fo->opt_fs = xrealloc(fo->opt_fs, len + 2);
  	ptr = fo->opt_fs + len;
  	/*
  	 * Make unique...
*** amd/opts.c.orig	Sun Feb  9 10:08:35 1992
--- amd/opts.c	Wed Apr 29 15:09:56 1992
***************
*** 366,374 ****
  
  			/* assert(*f != '/'); */
  			/* keep copying up to next / */
! 			do {
  				*t++ = *f++;
! 			} while (*f && *f != '/');
  
  			/* assert(*f == 0 || *f == '/'); */
  
--- 366,374 ----
  
  			/* assert(*f != '/'); */
  			/* keep copying up to next / */
! 			while (*f && *f != '/') {
  				*t++ = *f++;
! 			}
  
  			/* assert(*f == 0 || *f == '/'); */
  
*** amd/afs_ops.c.orig	Sun Feb  9 10:07:53 1992
--- amd/afs_ops.c	Wed May 20 09:44:09 1992
***************
*** 1531,1536 ****
--- 1531,1539 ----
  		return new_mp;
  	}
  
+ 	if (error && (cp->mp->am_mnt->mf_ops == &efs_ops))
+ 	    cp->mp->am_error = error;
+ 
  	assign_error_mntfs(cp->mp);
  
  	free(fname);
*** config/os-type.orig	Sun Feb  9 10:11:03 1992
--- config/os-type	Wed Apr 29 14:24:37 1992
***************
*** 84,89 ****
--- 84,91 ----
  				echo "#	... inspecting File system ..." >&2
  				if [ -f /etc/comply ]; then
  					OS=utek
+ 				elif [ -d /etc/aixdwm ]; then
+ 					OS=aix3
  				elif [ -f /usr/bin/cat ]; then
  					OS=sos4
  				elif [ -f /etc/nd ]; then
***************
*** 103,110 ****
  					OS=bsd44
  				elif [ -d /vrm ]; then
  					OS=aix2
- 				elif [ -d /etc/aix ]; then
- 					OS=aix3
  				elif [ -f /bin/pyr ] && /bin/pyr; then
  					OS=pyrOSx
  				elif [ -d /NextApps ]; then
--- 105,110 ----
*** config/os-aix3.h.orig	Sun Feb  9 10:09:43 1992
--- config/os-aix3.h	Fri May 22 13:11:22 1992
***************
*** 74,80 ****
  /*
   * Pick up BSD bits from include files
   */
! #define	_BSD
  
  /*
   * No mntent info on AIX 3
--- 74,80 ----
  /*
   * Pick up BSD bits from include files
   */
! #define	_BSD	43
  
  /*
   * No mntent info on AIX 3
***************
*** 178,180 ****
--- 178,181 ----
   * Need this too
   */
  #include <time.h>
+ #include <sys/time.h>
*** Makefile.com.orig	Sun Feb  9 10:10:41 1992
--- Makefile.com	Wed Apr 15 12:09:34 1992
***************
*** 48,54 ****
  #
  
  # Where to install amd
! ETC = /usr/local/etc
  
  # With what to install amd
  INSTALL = install
--- 48,54 ----
  #
  
  # Where to install amd
! ETC = /etc
  
  # With what to install amd
  INSTALL = install