From: Jeff Layton <jlayton@kernel.org>
To: Steve Dickson <steved@redhat.com>
Cc: linux-nfs@vger.kernel.org, Jeff Layton <jlayton@kernel.org>
Subject: [PATCH 1/2] nfsd: disable v4.0 by default
Date: Wed, 08 Oct 2025 16:13:42 -0400 [thread overview]
Message-ID: <20251008-master-v1-1-c879be4973c8@kernel.org> (raw)
In-Reply-To: <20251008-master-v1-0-c879be4973c8@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
utils/nfsd/nfsd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index a405649976c25474c032a8dc63eca6b63b789278..365e145d8860f54a168613ac15f3f1345b794b30 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -134,9 +134,10 @@ main(int argc, char **argv)
}
}
- /* We assume the kernel will default all minor versions to 'on',
- * and allow the config file to disable some.
+ /* We assume the kernel will default all minor versions besides '0'
+ * to 'on', and allow the config file to disable some.
*/
+ NFSCTL_MINORUNSET(minorvers, 0);
for (i = NFS4_MINMINOR; i <= NFS4_MAXMINOR; i++) {
char tag[20];
sprintf(tag, "vers4.%d", i);
--
2.51.0
next prev parent reply other threads:[~2025-10-08 20:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 20:13 [PATCH 0/2] nfsd/nfsdctl: default to starting with v4.0 servers disabled Jeff Layton
2025-10-08 20:13 ` Jeff Layton [this message]
2025-10-08 20:13 ` [PATCH 2/2] nfsdctl: disable v4.0 by default Jeff Layton
2026-01-09 19:04 ` [PATCH 0/2] nfsd/nfsdctl: default to starting with v4.0 servers disabled Jeff Layton
2026-01-10 9:20 ` Steve Dickson
2026-03-22 20:30 ` Steve Dickson
2026-03-22 21:31 ` Salvatore Bonaccorso
2026-03-22 21:42 ` Jeff Layton
2026-03-23 7:02 ` salvatore.bonaccorso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251008-master-v1-1-c879be4973c8@kernel.org \
--to=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=steved@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.