From owner-freebsd-bugs Thu Apr 13 14:20: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id F17E437BA9F for ; Thu, 13 Apr 2000 14:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA28800; Thu, 13 Apr 2000 14:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from privatecube.privatelabs.com (silvercube.silverpix.com [198.143.31.30]) by hub.freebsd.org (Postfix) with ESMTP id 20BFE37B680; Thu, 13 Apr 2000 14:12:07 -0700 (PDT) (envelope-from mi@privatelabs.com) Received: from misha.privatelabs.com (root@misha.privatelabs.com [198.143.31.6]) by privatecube.privatelabs.com (8.9.2/8.9.2) with ESMTP id RAA26380; Thu, 13 Apr 2000 17:10:55 -0400 (EDT) Received: (from mi@localhost) by misha.privatelabs.com (8.9.3/8.9.3) id RAA27613; Thu, 13 Apr 2000 17:11:50 -0400 (EDT) (envelope-from mi) Message-Id: <200004132111.RAA27613@misha.privatelabs.com> Date: Thu, 13 Apr 2000 17:11:50 -0400 (EDT) From: Mikhail Teterin Reply-To: mi@privatelabs.com To: FreeBSD-gnats-submit@freebsd.org Cc: peter@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/17993: improving on the default /etc/amd.map Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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