[NFSD] kconfig: Select things at the closest tristate instead of bool



Hi:

I noticed recently that my CONFIG_CRYPTO_MD5 turned into a y again
instead of m. It turns out that CONFIG_NFSD_V4 is selecting it to
be y even though I've chosen to compile nfsd as a module.

In general when we have a bool sitting under a tristate it is
better to select things you need from the tristate rather than the
bool since that allows the things you select to be modules.

The following patch does it for nfsd.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
diff --git a/fs/Kconfig b/fs/Kconfig
index f9b5842..7cb0210 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -1431,8 +1431,13 @@
select LOCKD
select SUNRPC
select EXPORTFS
- select NFS_ACL_SUPPORT if NFSD_V3_ACL || NFSD_V2_ACL
- help
+ select NFSD_V2_ACL if NFSD_V3_ACL
+ select NFS_ACL_SUPPORT if NFSD_V2_ACL
+ select NFSD_TCP if NFSD_V4
+ select CRYPTO_MD5 if NFSD_V4
+ select CRYPTO if NFSD_V4
+ select FS_POSIX_ACL if NFSD_V4
+ help
If you want your Linux box to act as an NFS *server*, so that other
computers on your local network which support NFS can access certain
directories on your box transparently, you have two options: you can
@@ -1469,7 +1474,6 @@
config NFSD_V3_ACL
bool "Provide server support for the NFSv3 ACL protocol extension"
depends on NFSD_V3
- select NFSD_V2_ACL
help
Implement the NFSv3 ACL protocol extension for manipulating POSIX
Access Control Lists on exported file systems. NFS clients should
@@ -1479,10 +1483,6 @@
config NFSD_V4
bool "Provide NFSv4 server support (EXPERIMENTAL)"
depends on NFSD_V3 && EXPERIMENTAL
- select NFSD_TCP
- select CRYPTO_MD5
- select CRYPTO
- select FS_POSIX_ACL
help
If you would like to include the NFSv4 server as well as the NFSv2
and NFSv3 servers, say Y here. This feature is experimental, and


Relevant Pages

  • [NFSD]: Select things at the closest tristate instead of bool
    ... In general when we have a bool sitting under a tristate it is ... If you want your Linux box to act as an NFS *server*, ... bool "Provide server support for the NFSv3 ACL protocol extension" ... Implement the NFSv3 ACL protocol extension for manipulating POSIX ...
    (Linux-Kernel)
  • Re: CSocket, best way to wait for a reply?
    ... So what you end up with is a socket that tells the owner class that there is ... BOOL CMySocket::SendAndWaitForReply ... If you get data from the server OnReceive is called. ... > BOOL bWhatEverTheServerSaid = FALSE; ...
    (microsoft.public.vc.mfc)
  • Re: Stored Procedures Query
    ... Server Support" does not kick in until the Professional edition. ... Microsoft MVP ... The free versions of Visual Studio have limited ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: pci-sysfs resource mmap broken (and PATCH)
    ... if the token goes in as the offset parameter to mmap() then ... and it used in the X server on PPC ... on clean X server support. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: NDIS Test fails in Ndis.
    ... Regarding NDISTest client not seeing the server. ... mismatch between type of test adapter and selected server support adapter. ...
    (microsoft.public.development.device.drivers)