2024-04-25 20:43:27

by Anna Schumaker

[permalink] [raw]
Subject: [PATCH] NFS: Don't enable NFS v2 by default

From: Anna Schumaker <[email protected]>

This came up during one of the Bake-a-thon discussions. NFS v2 support
was dropped from nfs-utils/mount.nfs in December 2021. Let's turn it
off by default in the kernel too, since this means there isn't a way
to mount and test it.

Signed-off-by: Anna Schumaker <[email protected]>
---
fs/nfs/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig
index f7e32d76e34d..57249f040dfc 100644
--- a/fs/nfs/Kconfig
+++ b/fs/nfs/Kconfig
@@ -33,12 +33,12 @@ config NFS_FS
config NFS_V2
tristate "NFS client support for NFS version 2"
depends on NFS_FS
- default y
+ default n
help
This option enables support for version 2 of the NFS protocol
(RFC 1094) in the kernel's NFS client.

- If unsure, say Y.
+ If unsure, say N.

config NFS_V3
tristate "NFS client support for NFS version 3"
--
2.44.0



2024-04-26 12:05:57

by Jeff Layton

[permalink] [raw]
Subject: Re: [PATCH] NFS: Don't enable NFS v2 by default

On Thu, 2024-04-25 at 16:34 -0400, Anna Schumaker wrote:
> From: Anna Schumaker <[email protected]>
>
> This came up during one of the Bake-a-thon discussions. NFS v2 support
> was dropped from nfs-utils/mount.nfs in December 2021. Let's turn it
> off by default in the kernel too, since this means there isn't a way
> to mount and test it.
>
> Signed-off-by: Anna Schumaker <[email protected]>
> ---
> fs/nfs/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig
> index f7e32d76e34d..57249f040dfc 100644
> --- a/fs/nfs/Kconfig
> +++ b/fs/nfs/Kconfig
> @@ -33,12 +33,12 @@ config NFS_FS
> config NFS_V2
> tristate "NFS client support for NFS version 2"
> depends on NFS_FS
> - default y
> + default n
> help
> This option enables support for version 2 of the NFS protocol
> (RFC 1094) in the kernel's NFS client.
>
> - If unsure, say Y.
> + If unsure, say N.
>
> config NFS_V3
> tristate "NFS client support for NFS version 3"

Reviewed-by: Jeffrey Layton <[email protected]>