NFSD: Remove NFSv4 dependency on NFSv3
Subsystems (3)
PATCH 6/11 NFSD: Remove NFSv4 dependency on NFSv3
Clean up: Because NFSD_V4 "depends on" NFSD_V3, it appears as a child of the NFSD_V3 menu entry, and is not visible if NFSD_V3 is unselected.
Replace the dependency on NFSD_V3 with a "select NFSD_V3". This makes NFSD_V4 look and work just like NFS_V3, while ensuring that NFSD_V3 is enabled if NFSD_V4 is.
---
fs/Kconfig | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
fs/Kconfig +2 -1
@@ -1723,7 +1723,8 @@ 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 && EXPERIMENTAL + select NFSD_V3 select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for
Quoted 18 lines · Chuck Lever
Clean up: Because
NFSD_V4"depends on"NFSD_V3, it appears as a child of theNFSD_V3menu entry, and is not visible ifNFSD_V3is unselected.Replace the dependency on
NFSD_V3with a "selectNFSD_V3". This makesNFSD_V4look and work just likeNFS_V3, while ensuring thatNFSD_V3is enabled ifNFSD_V4is.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)fs/Kconfig +0
-0
fs/Kconfig config NFSD_V3_ACL · line 1730
Quoted 9 lines
fs/Kconfig +2
-1@@ -1723,7 +1723,8 @@ 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 && EXPERIMENTAL + select NFSD_V3 select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server for
This use of select is questionable. In general it is bad to select a symbol with dependencies.
In this case the dependencies of NFSD_V3 are duplicated for NFSD_V4 so we will not se erratic configurations but do you remember to update NFSD_V4 when you add a depends on NFSD_V3?
But I see no other clean way to do it rithg now.
Sam
Quoted 35 lines · Sam Ravnborg
Quoted 18 lines · Chuck Lever
Clean up: Because
NFSD_V4"depends on"NFSD_V3, it appears as a child of theNFSD_V3menu entry, and is not visible ifNFSD_V3is unselected.Replace the dependency on
NFSD_V3with a "selectNFSD_V3". This makesNFSD_V4look and work just likeNFS_V3, while ensuring thatNFSD_V3is enabled ifNFSD_V4is.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)fs/Kconfig +0
-0fs/Kconfig config NFSD_V3_ACL · line 1730
Quoted 9 lines
fs/Kconfig +2
-1@@ -1723,7 +1723,8 @@ 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 && EXPERIMENTAL + select NFSD_V3 select RPCSEC_GSS_KRB5 help This option enables support in your system's NFS server forThis use of select is questionable. In general it is bad to select a symbol with dependencies.
In this case the dependencies ofNFSD_V3are duplicated forNFSD_V4so we will not se erratic configurations but do you remember to updateNFSD_V4when you add a depends onNFSD_V3?
Quoted 1 line
But I see no other clean way to do it rithg now.
This patch is entirely optional, and I can just drop it for now.
Thanks for the review.
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Quoted 39 lines · Chuck Lever
Quoted 38 lines · Sam Ravnborg
Quoted 27 lines · Chuck Lever
Clean up: Because
NFSD_V4"depends on"NFSD_V3, it appears as a child of
theNFSD_V3menu entry, and is not visible ifNFSD_V3is unselected.Replace the dependency on
NFSD_V3with a "selectNFSD_V3". This makesNFSD_V4look and work just likeNFS_V3, while ensuring thatNFSD_V3is
enabled ifNFSD_V4is.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)fs/Kconfig +0
-0@@ -1723,7 +1723,8 @@ config NFSD_V3_ACLconfig
NFSD_V4
bool "NFS server support for NFS version 4 (EXPERIMENTAL)"fs/Kconfig +2
-1- depends on NFSD && NFSD_V3 && EXPERIMENTAL + depends on NFSD && EXPERIMENTAL + select NFSD_V3Quoted 3 lines
select
RPCSEC_GSS_KRB5
help
This option enables support in your system's NFS server forThis use of select is questionable. In general it is bad to select a symbol with dependencies.
In this case the dependencies ofNFSD_V3are duplicated forNFSD_V4so we will not se erratic configurations but do you remember to updateNFSD_V4when you add a depends onNFSD_V3?
Quoted 3 lines
Quoted 1 line
But I see no other clean way to do it rithg now.
This patch is entirely optional, and I can just drop it for now.
Keep it. My comment was more to say we have things to address in kconfig. This is abuse in the acceptable range.
Sam