Subject: sparc64 (1.6.1) amd still broken
To: None <port-sparc64@netbsd.org>
From: Eric Fox <eric@fox.phoenix.az.us>
List: port-sparc64
Date: 09/08/2003 20:42:35
Just posting this because I didn't find a solution in the mail lists...

It appears that amd in 1.6.1 is still broken on sparc64 in the same manner
as reported in June of 2001:

  http://mail-index.netbsd.org/port-sparc/2001/06/08/0004.html

In brief, maps (NIS or Files) for home directories or other automounted
locations dont appear to work (input/output error), but host based maps,
i.e.:  /net/hostname, do -- just as reported in the link above.

After searching through the mail lists and other resources on netbsd.org,
and failed attempts to build am-utils from cvs (missing aclocal-1.6 and
other compilation issues), I've come up with a work-around.

Create a net_map:

  /defaults	type:=host;fs:=${autodir}/${rhosts};rhost:=${key}
  *		opts:=rw,grpid,resvport,nodev

Then add a map to NIS for creating links to the appropriate /net
location.  For example a record from the original amd.home file which had
been:

  foxe	type:=nfs;rhost:=nac15;rfs:=/vol/vol0/PH8436_users/foxe;
	opts:=resvport,intr

Now looks like:

  foxe	type:=link;fs:=/net/nac15/vol/vol0/PH8436_users/foxe


So far, this seems to be working pretty well, all considered.  Hopefully,
the next production release of NetBSD (1.6.2? 1.7?) will have the original
problem fixed.

---
  /\---/\  Eric J Fox
 /  o o  \ Home & Small Business Computer Support
 \.\   /./ in the Phoenix Metropolitan Area
    \@/    http://fox.phoenix.az.us/support
.