NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/40483: Missing nuidhash_max definition in NFSSERVER only case



>Number:         40483
>Category:       kern
>Synopsis:       Kernels with NFSSERVER but not NFS filesystem do not build 
>because nuidhash_max is not defined
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 26 17:30:00 +0000 2009
>Originator:     Scott Ellis
>Release:        NetBSD 5.99.6
>Organization:
        
>Environment:
        
        
System: NetBSD intrepid 5.99.6 NetBSD 5.99.6 (INTREPID.P5W) #0: Thu Jan 8 
16:04:32 PST 2009 
scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        
nfs_syscalls.c contains "extern int nuidhash_max;", but nuidhash_max only
resides in nfs_iod.c, which is a client-only NFS file.  So, kernels that
have NFSSERVER but not the NFS filesystem, fail to build.

>How-To-Repeat:
        
Try and build a kernel with NFSSERVER but not NFS.  Enjoy.

>Fix:
        
Replace "extern int nuidhash_max;" with the definition from nfs_iod.c, which
is "int nuidhash_max = NFS_MAXUIDHASH;".  This should probably go to some
common header file, but...this fix makes the kernel build. :-)

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index