NFSD: Use "depends on" for PROC_FS dependency
Subsystems (3)
PATCH 7/11 NFSD: Use "depends on" for PROC_FS dependency
Recently, commit 440bcc59 added a reverse dependency to fs/Kconfig to ensure that PROC_FS was enabled if NFSD_V4 was enabled.
There is a guideline in Documentation/kbuild/kconfig-language.txt that states "In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies."
A quick grep around other Kconfig files reveals that no entry currently uses "select PROC_FS" -- every one uses "depends on". Thus CONFIG_NFSD_V4 should use "depends on PROC_FS" as well.
For SUNRPC_GSS, it's a little more complex. Other entries can "select" SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such as PROC_FS). So, we add forward dependencies on PROC_FS to RPCSEC_GSS_FOO instead.
XXX: Both CONFIG_NFSV4 and CONFIG_NFSD_V4 select RPCSEC_GSS_KRB5, which is visible, which kconfig-language.txt also frowns upon. The intent was to enable at least one GSS mechanism if V4 was enabled. Perhaps we should make SUNRPC_GSS visible, and make the NFSv4 options visible only if SUNRPC_GSS is enabled.
---
fs/Kconfig | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
fs/Kconfig +3 -5
@@ -1662,8 +1662,6 @@ config NFSD select CRYPTO_MD5 if NFSD_V4 select CRYPTO if NFSD_V4 select FS_POSIX_ACL if NFSD_V4 - select PROC_FS if NFSD_V4 - select PROC_FS if SUNRPC_GSS help Choose Y here if you want to allow other computers to access files residing on this system using Sun's Network File System
@@ -1723,7 +1721,7 @@ config NFSD_V3_ACL config NFSD_V4 bool "NFS server support for NFS version 4 (EXPERIMENTAL)" - depends on NFSD && NFSD_V3 && EXPERIMENTAL + depends on NFSD && NFSD_V3 && PROC_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for
@@ -1798,7 +1796,7 @@ config SUNRPC_BIND34 config RPCSEC_GSS_KRB5 tristate "Secure RPC: Kerberos V mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5
@@ -1817,7 +1815,7 @@ config RPCSEC_GSS_KRB5 config RPCSEC_GSS_SPKM3 tristate "Secure RPC: SPKM3 mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5
A message that is not in the archive (sent off-list or not yet received): 20080211221216.1047.31922.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org
Quoted 10 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txtthat states "In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies."A quick grep around other
Kconfigfiles reveals that no entry currently uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4should use "depends onPROC_FS" as well.
OK.
Quoted 5 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.
This also makes the client dependent on PROC_FS, which it wasn't before.
I assume nobody cares?
--b.
Quoted 54 lines
XXX: Both
CONFIG_NFSV4andCONFIG_NFSD_V4selectRPCSEC_GSS_KRB5, which is visible, which kconfig-language.txt also frowns upon. The intent was to enable at least one GSS mechanism if V4 was enabled. Perhaps we should makeSUNRPC_GSSvisible, and make the NFSv4 options visible only ifSUNRPC_GSSis enabled.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)fs/Kconfig +3
-5@@ -1662,8 +1662,6 @@ config NFSD select CRYPTO_MD5 if NFSD_V4 select CRYPTO if NFSD_V4 select FS_POSIX_ACL if NFSD_V4 - select PROC_FS if NFSD_V4 - select PROC_FS if SUNRPC_GSS help Choose Y here if you want to allow other computers to access files residing on this system using Sun's Network File System@@ -1723,7 +1721,7 @@ config NFSD_V3_ACL config NFSD_V4 bool "NFS server support for NFS version 4 (EXPERIMENTAL)" - depends on NFSD && NFSD_V3 && EXPERIMENTAL + depends on NFSD && NFSD_V3 && PROC_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for@@ -1798,7 +1796,7 @@ config SUNRPC_BIND34 config RPCSEC_GSS_KRB5 tristate "Secure RPC: Kerberos V mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5@@ -1817,7 +1815,7 @@ config RPCSEC_GSS_KRB5 config RPCSEC_GSS_SPKM3 tristate "Secure RPC: SPKM3 mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5
Quoted 15 lines · J. Bruce Fields
Quoted 10 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txtthat states "In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies."A quick grep around other
Kconfigfiles reveals that no entry currently uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4should use "depends onPROC_FS" as well.OK.
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.This also makes the client dependent on
PROC_FS, which it wasn't before.I assume nobody cares?
You assume wrongly. Patch NAKed...
Trond
A message that is not in the archive (sent off-list or not yet received): 1202852836.9228.1.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org
Quoted 22 lines · Trond Myklebust
Quoted 20 lines · J. Bruce Fields
Quoted 10 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txtthat states "In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies."A quick grep around other
Kconfigfiles reveals that no entry currently uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4should use "depends onPROC_FS" as well.OK.
Quoted 5 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.
Quoted 5 lines
Quoted 3 lines
This also makes the client dependent on
PROC_FS, which it wasn't before.I assume nobody cares?
You assume wrongly. Patch NAKed...
Do you have a use case in mind? (Just curious.)
--b.
Quoted 5 lines · J. Bruce Fields
Quoted 3 lines
Quoted 1 line
I assume nobody cares?
You assume wrongly. Patch NAKed...
Do you have a use case in mind? (Just curious.)
Embedded systems often compile without sysctl and/or procfs support. Why shouldn't they be able to run an NFS client with RPCSEC_GSS?
The other argument is that there is _nothing_ in the actual auth_gss code that depends on procfs. The "dependency" (if there is one) is between net/sunrpc/cache.c and procfs, and in fact, both sunrpc and the auth_gss modules will compile just fine without procfs.
A message that is not in the archive (sent off-list or not yet received): 1202857069.9228.14.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org
Quoted 5 lines · Trond Myklebust
Quoted 3 lines · J. Bruce Fields
Quoted 2 lines
Quoted 1 line
I assume nobody cares?
You assume wrongly. Patch NAKed...
Do you have a use case in mind? (Just curious.)
Quoted 7 lines
Embedded systems often compile without sysctl and/or procfs support. Why shouldn't they be able to run an NFS client with
RPCSEC_GSS?The other argument is that there is _nothing_ in the actual
auth_gsscode that depends on procfs. The "dependency" (if there is one) is betweennet/sunrpc/cache.cand procfs, and in fact, both sunrpc and theauth_gssmodules will compile just fine without procfs.
In that case, do we really even need a PROC_FS dependency (forward or reverse) for the RPCSEC entries?
It would be simple to split this patch into an NFSD_V4 part and an RPCSEC part, and just drop the RPCSEC part.
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA email;internet:chuck dot lever at nospam oracle dot com title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard
Quoted 7 lines · Trond Myklebust
Quoted 3 lines · J. Bruce Fields
Quoted 2 lines
Quoted 1 line
I assume nobody cares?
You assume wrongly. Patch NAKed...
Do you have a use case in mind? (Just curious.)
Embedded systems often compile without sysctl and/or procfs support. Why shouldn't they be able to run an NFS client with
RPCSEC_GSS?
OK, it looks like the patch that adds the "depends on SYSCTL" to the LOCKD entry will cause NFS-enabled builds to break if CONFIG_SYSCTL is disabled, thanks to the recent addition of nlmclnt_init and nlmclnt_done.
Probably the better solution in this case is to ifdef out the register_sysctl() call in lockd if CONFIG_SYSCTL isn't set. In the long run, should we make it possible to build the NFS client without lockd?
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA email;internet:chuck dot lever at nospam oracle dot com title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard
Quoted 9 lines · Chuck Lever
Quoted 7 lines · Trond Myklebust
Quoted 3 lines · J. Bruce Fields
Quoted 2 lines
Quoted 1 line
I assume nobody cares?
You assume wrongly. Patch NAKed...
Do you have a use case in mind? (Just curious.)
Embedded systems often compile without sysctl and/or procfs support. Why shouldn't they be able to run an NFS client with
RPCSEC_GSS?
Quoted 7 lines
OK, it looks like the patch that adds the "depends on SYSCTL" to the LOCKD entry will cause NFS-enabled builds to break if
CONFIG_SYSCTLis disabled, thanks to the recent addition ofnlmclnt_initandnlmclnt_done.Probably the better solution in this case is to ifdef out the
register_sysctl()call in lockd ifCONFIG_SYSCTLisn't set. In the long run, should we make it possible to build the NFS client without lockd?
In the long run, we really ought to try to make it possible to build a NFSv3-only, or a NFSv4-only client, so yes...
Quoted 15 lines · J. Bruce Fields
Quoted 10 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txtthat states "In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies."A quick grep around other
Kconfigfiles reveals that no entry currently uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4should use "depends onPROC_FS" as well.OK.
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.This also makes the client dependent on
PROC_FS, which it wasn't before.I assume nobody cares?
Huh? If I disable PROC_FS, I can still select the NFS client options, even NFSv4.
Quoted 45 lines
Quoted 45 lines
XXX: Both
CONFIG_NFSV4andCONFIG_NFSD_V4selectRPCSEC_GSS_KRB5, which is visible, which kconfig-language.txt also frowns upon. The intent was to enable at least one GSS mechanism if V4 was enabled. Perhaps we should makeSUNRPC_GSSvisible, and make the NFSv4 options visible only ifSUNRPC_GSSis enabled.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)fs/Kconfig +2
-4@@ -1662,8 +1662,6 @@ config NFSD select CRYPTO_MD5 if NFSD_V4 select CRYPTO if NFSD_V4 select FS_POSIX_ACL if NFSD_V4 - select PROC_FS if NFSD_V4 - select PROC_FS if SUNRPC_GSS help Choose Y here if you want to allow other computers to access files residing on this system using Sun's Network File System@@ -1723,7 +1721,7 @@ config NFSD_V3_ACL config NFSD_V4 bool "NFS server support for NFS version 4 (EXPERIMENTAL)" - depends on NFSD && NFSD_V3 && EXPERIMENTAL + depends on NFSD && NFSD_V3 && PROC_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for@@ -1798,7 +1796,7 @@ config SUNRPC_BIND34 config RPCSEC_GSS_KRB5 tristate "Secure RPC: Kerberos V mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5@@ -1817,7 +1815,7 @@ config RPCSEC_GSS_KRB5
Quoted 8 lines
fs/Kconfig config RPCSEC_GSS_KRB5 · line 1821
Quoted 8 lines
fs/Kconfig +1
-1config RPCSEC_GSS_SPKM3 tristate "Secure RPC: SPKM3 mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Quoted 28 lines · Chuck Lever
Quoted 25 lines · J. Bruce Fields
Quoted 9 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txtthat
states "In general use select only for non-visible symbols (no prompts
anywhere) and for symbols with no dependencies."Quoted 5 lines
A quick grep around other
Kconfigfiles reveals that no entry currently
uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4
should use "depends onPROC_FS" as well.OK.
Quoted 6 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.
Quoted 7 lines
Quoted 4 lines
This also makes the client dependent on
PROC_FS, which it wasn't before.I assume nobody cares?
Huh? If I disable
PROC_FS, I can still select the NFS client options, even NFSv4.
OK. I'm confused, then:
NFS_V4 selects RPCSEC_GSS_KRB5 RPCSEC_GSS_KRB5 (after this patch) depends on PROC_FS
What am I missing?
--b.
Quoted 64 lines
Quoted 49 lines
Quoted 49 lines
XXX: Both
CONFIG_NFSV4andCONFIG_NFSD_V4selectRPCSEC_GSS_KRB5, which is
visible, which kconfig-language.txt also frowns upon. The intent was to
enable at least one GSS mechanism if V4 was enabled. Perhaps we should
makeSUNRPC_GSSvisible, and make the NFSv4 options visible only ifSUNRPC_GSSis enabled.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)fs/Kconfig +2
-4@@ -1662,8 +1662,6 @@ config NFSD select CRYPTO_MD5 if NFSD_V4 select CRYPTO if NFSD_V4 select FS_POSIX_ACL if NFSD_V4 - select PROC_FS if NFSD_V4 - select PROC_FS if SUNRPC_GSS help Choose Y here if you want to allow other computers to access files residing on this system using Sun's Network File System@@ -1723,7 +1721,7 @@ config NFSD_V3_ACL config NFSD_V4 bool "NFS server support for NFS version 4 (EXPERIMENTAL)" - depends on NFSD && NFSD_V3 && EXPERIMENTAL + depends on NFSD && NFSD_V3 && PROC_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for@@ -1798,7 +1796,7 @@ config SUNRPC_BIND34 config RPCSEC_GSS_KRB5 tristate "Secure RPC: Kerberos V mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5@@ -1817,7 +1815,7 @@ config RPCSEC_GSS_KRB5Quoted 8 lines
fs/Kconfig config RPCSEC_GSS_KRB5 · line 1821
Quoted 8 lines
fs/Kconfig +1
-1config RPCSEC_GSS_SPKM3 tristate "Secure RPC: SPKM3 mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Quoted 23 lines · J. Bruce Fields
Quoted 22 lines · Chuck Lever
Quoted 20 lines · J. Bruce Fields
Quoted 10 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txtthat states "In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies."A quick grep around other
Kconfigfiles reveals that no entry currently uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4should use "depends onPROC_FS" as well.OK.
Quoted 4 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.This also makes the client dependent on
PROC_FS, which it wasn't before.I assume nobody cares?
Quoted 8 lines
Quoted 1 line
Huh? If I disable
PROC_FS, I can still select the NFS client options, even NFSv4.OK. I'm confused, then:
NFS_V4selectsRPCSEC_GSS_KRB5RPCSEC_GSS_KRB5(after this patch) depends onPROC_FSWhat am I missing?
It appears that the "select RPCSEC_GSS_KRB5" is a no-op if RPCSEC_GSS_KRB5 hasn't met it's forward dependencies.
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
XXX: Both
CONFIG_NFSV4andCONFIG_NFSD_V4selectRPCSEC_GSS_KRB5, which is visible, which kconfig-language.txt also frowns upon. The intent was to enable at least one GSS mechanism if V4 was enabled. Perhaps we should makeSUNRPC_GSSvisible, and make the NFSv4 options visible only ifSUNRPC_GSSis enabled.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)fs/Kconfig +2
-4@@ -1662,8 +1662,6 @@ config NFSD select CRYPTO_MD5 if NFSD_V4 select CRYPTO if NFSD_V4 select FS_POSIX_ACL if NFSD_V4 - select PROC_FS if NFSD_V4 - select PROC_FS if SUNRPC_GSS help Choose Y here if you want to allow other computers to access files residing on this system using Sun's Network File System@@ -1723,7 +1721,7 @@ config NFSD_V3_ACL config NFSD_V4 bool "NFS server support for NFS version 4 (EXPERIMENTAL)" - depends on NFSD && NFSD_V3 && EXPERIMENTAL + depends on NFSD && NFSD_V3 && PROC_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for@@ -1798,7 +1796,7 @@ config SUNRPC_BIND34 config RPCSEC_GSS_KRB5 tristate "Secure RPC: Kerberos V mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5@@ -1817,7 +1815,7 @@ config RPCSEC_GSS_KRB5
Quoted 14 lines
Quoted 14 lines
Quoted 8 lines
fs/Kconfig config RPCSEC_GSS_KRB5 · line 1821
Quoted 8 lines
fs/Kconfig +1
-1config RPCSEC_GSS_SPKM3 tristate "Secure RPC: SPKM3 mechanism (EXPERIMENTAL)" - depends on SUNRPC && EXPERIMENTAL + depends on SUNRPC && PROC_FS && EXPERIMENTAL select SUNRPC_GSS select CRYPTO select CRYPTO_MD5--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA email;internet:chuck dot lever at nospam oracle dot com title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard
Quoted 35 lines · Chuck Lever
Quoted 34 lines · J. Bruce Fields
Quoted 24 lines · Chuck Lever
Quoted 22 lines · J. Bruce Fields
Quoted 9 lines · Chuck Lever
Recently, commit
440bcc59added a reverse dependency to fs/Kconfig to ensure thatPROC_FSwas enabled ifNFSD_V4was enabled.There is a guideline in
Documentation/kbuild/kconfig-language.txt
that
states "In general use select only for non-visible symbols (no prompts
anywhere) and for symbols with no dependencies."Quoted 5 lines
A quick grep around other
Kconfigfiles reveals that no entry currently
uses "selectPROC_FS" -- every one uses "depends on". ThusCONFIG_NFSD_V4
should use "depends onPROC_FS" as well.OK.
Quoted 5 lines
For
SUNRPC_GSS, it's a little more complex. Other entries can "select"SUNRPC_GSS, as it is non-visible. However, the guideline suggests an entry can't "select" it if it has a dependency (such asPROC_FS). So, we add forward dependencies onPROC_FStoRPCSEC_GSS_FOOinstead.Quoted 6 lines
Quoted 4 lines
This also makes the client dependent on
PROC_FS, which it wasn't before.I assume nobody cares?
Huh? If I disable
PROC_FS, I can still select the NFS client options, even NFSv4.OK. I'm confused, then:
Quoted 7 lines
Quoted 4 lines
NFS_V4selectsRPCSEC_GSS_KRB5RPCSEC_GSS_KRB5(after this patch) depends onPROC_FSWhat am I missing?
It appears that the "select
RPCSEC_GSS_KRB5" is a no-op ifRPCSEC_GSS_KRB5hasn't met it's forward dependencies.
Oh, OK, I didn't understand that.
However, this means that it's no longer possible to build a V4 client with krb5 support without also including PROC_FS. So I think we can't apply this as is.
--b.