Date: Thu, 13 Apr 2000 17:11:50 -0400 (EDT) From: Mikhail Teterin <mi@privatelabs.com> To: FreeBSD-gnats-submit@freebsd.org Cc: peter@freebsd.org Subject: conf/17993: improving on the default /etc/amd.map Message-ID: <200004132111.RAA27613@misha.privatelabs.com>
next in thread | raw e-mail | index | archive | help
>Number: 17993 >Category: conf >Synopsis: improving on the default /etc/amd.map >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 13 14:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 4.0-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: Currently, the default amd.map will cause amd to mount the filesystems using NFS even if the requested host is the same. The change below will make it use symboliic link to the / when the machine is local. One can still use /net/localhost if NFS mount is essential... Putting a reference to http://www.cs.columbia.edu/~ezk/am-utils/ into amd(8) and amd.conf(5) would A Very Good Thing (SM). >How-To-Repeat: >Fix: This can probably be expressed even better, but it works for me... --- amd.map Mon Mar 20 16:32:44 2000 +++ amd.map Thu Apr 13 17:01:10 2000 @@ -2,3 +2,5 @@ # -/defaults type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key} -* opts:=rw,grpid,resvport,vers=2,proto=udp,nosuid,nodev +/defaults opts:=rw,grpid,resvport,vers=2,proto=udp,nosuid,nodev + +* host==${key};type:=link;fs:=/ \ + host!=${key};type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key}; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004132111.RAA27613>
