Bug 19558

Summary: amd doesn't know whether NFS feature is available or not
Product: Base System Reporter: Makoto Matsushita <matusita>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Makoto Matsushita 2000-06-28 09:30:00 UTC
	Assume that running kernel does not have NFS feature (no
	"options NFS" line in kernel config).

	If you type "mount nfsserver:/path/to/mountpoint /local/path",
	mount_nfs automatically loads /modules/nfs.ko and the attempts
	may success.  Same scenario can be applied to fstab. Works perfect.

	However, the amd automounter, does not know how to load NFS module.
	You can see many warnings if the kernel does not have NFS
	feature nor you doesn't load NFS modules *before* starting amd.

	Maybe you say: hey, put 'nfs_load="YES"' to /boot/loader.conf.local.
	But why, why mount(8) and fstab(5) works but amd(8) doesn't work?

	I do not check other filesystems which is supported by amd and
	has already have its own kernel modules, but maybe the same.

Fix: 

Teach vfsload() and its associated funcalls to amd.
How-To-Repeat: 
	- Install /kernel without NFS feature.
	- Setup /etc/rc.conf{,local} to use amd.
	- Boot FreeBSD and see how /etc/rc is processed.
Comment 1 Makoto Matsushita 2000-09-27 05:44:23 UTC
Here is a status of this PR.

* No one checks this PR yet.

* Amd still doesn't know that FreeBSD is now kernel module and NFS is
  provided as modules also. Amd should know that there is a kernel
  which does *not know about NFS.

* For users: if you want to use amd as NFS automounter, you should:
	- add 'options NFS' to your kernel config file, or
	- add 'nfs_load="YES"' to your /boot/loader.conf.

  If this is the solution, please close this PR...

-- -
Makoto `MAR' MATSUSHITA
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2001-09-02 18:06:04 UTC
State Changed
From-To: open->closed

I agree this is a bug.... but it beyond fixing by me. 
(at least w/o a patch from you) 
The right place to address this would to be with someone at 
http://www.cs.columbia.edu/~ezk/am-utils/index.html.