If I list /net/<foo>, where <foo> resolves to an IP address of the local host, then I should see my root directory. That is, /net/<any alias for the local host> should work regardless of whether the local host is running NFS.
Have you exported your root directory using NFS?
No, I did not export my local root directory using NFS. I do not think I should NEED to export my local root directory using NFS. That's what this enhancement request is all about. I should not have to run an NFS server on my local machine to be able to list /net/localhost or /net/<some other name for the local host> and have it work.
Autofs does not yet support the tree mounts used for /net; you must mean am-utils.
Exporting your root directory is not necessary; the only thing that's needed is that amd can contact a running mountd on your server, and for that to work, at least *one* directory must be exported, if only read-only. Once that is done, you will be able to list your exported directories under /net.
My 2 cents: I think that what amd does is the right thing to do. The purpose of using /net is so that your program or script will be portable across the network. What amd could do (as some automounts do) is creat a link instead of NFS mounting local drives. Autofs (at least for IRIX) will do as jik desires, so it may be a useful option to have.
Is this what u ask for? #amd.net localhost type:=link;fs:=/ * host==${key};type:=link;fs:=/ \ hostd==${key};type:=link;fs:=/ \ fs:=${autodir}/${rhost}/root/${rfs};type:=host;rhost:=${key};rfs:=/;opts:=nosuid,nodev
Sorry, I don't speak amd. I have no idea what that says.
This map will allow you to NFS mount any host by using /host/<hostname>/mountpoint syntax, plus it optimizes /host/localhost, and /host/<localmachinename> to symlinks to /.