public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: [PATCH 1/1] nfsd: Set v4 version when only a minor version is set
Date: Thu, 27 Oct 2022 14:51:21 -0400	[thread overview]
Message-ID: <20221027185121.15044-2-steved@redhat.com> (raw)
In-Reply-To: <20221027185121.15044-1-steved@redhat.com>

Make sure the v4 version is set when only a minor
version is set in /etc/nfs.conf

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 utils/nfsd/nfsd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index 4016a76..87c5ce9 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -154,6 +154,9 @@ main(int argc, char **argv)
 		if (conf_get_bool("nfsd", tag, 0)) {
 			NFSCTL_MINORSET(minorversset, i);
 			NFSCTL_MINORSET(minorvers, i);
+			/* Make sure v4 is set */
+			if (!NFSCTL_VERISSET(versbits, 4))
+				NFSCTL_VERSET(versbits, 4);
 			if (i == 0)
 				force4dot0 = 1;
 		}
-- 
2.37.3


      reply	other threads:[~2022-10-27 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-27 18:51 [RFC PATCH 0/1] nfsd: Set v4 version when only a minor version is set Steve Dickson
2022-10-27 18:51 ` Steve Dickson [this message]

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=20221027185121.15044-2-steved@redhat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox