Bug 15452

Summary: getfh syscall is only installed with NFS
Product: Base System Reporter: assar <assar>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: assar
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description assar 1999-12-13 04:50:01 UTC
The function for the getfh system call is in kern/vfs_syscalls.c and
is always compiled it (and rather small), but the system call is only
added to the table (`sysent') in the NFS code.  This doesn't make
sense, why not always have the system call?  The other file handle
system calls (fhopen et al) are always included but they're kind of
non-useful with getfh.

How-To-Repeat: 
build a kernel with NFS_NOSERVER or without NFS.  call getfh().
Comment 1 Alfred Perlstein freebsd_committer freebsd_triage 1999-12-23 02:10:59 UTC
State Changed
From-To: open->closed

diffs applied in to -current 
1.69      +2 -2      src/sys/kern/syscalls.master 
1.88      +1 -15     src/sys/nfs/nfs_subs.c