[PATCH 1/1] nfsd: Set v4 version when only a minor version is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Steve Dickson <steved@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux