Message ID | 20180810204421.21882-2-smayhew@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | A few fixes to rpc.nfsd enabling/disabling minor version 0 | expand |
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c index f048631..bd86d11 100644 --- a/utils/nfsd/nfsd.c +++ b/utils/nfsd/nfsd.c @@ -110,11 +110,7 @@ main(int argc, char **argv) /* We assume the kernel will default all minor versions to 'on', * and allow the config file to disable some. */ - if (NFSCTL_VERISSET(versbits, 4)) { - NFSCTL_MINORSET(minorversset, 0); - NFSCTL_MINORSET(minorvers, 0); - } - for (i = 1; i <= NFS4_MAXMINOR; i++) { + for (i = NFS4_MINMINOR; i <= NFS4_MAXMINOR; i++) { char tag[20]; sprintf(tag, "vers4.%d", i); /* The default for minor version support is to let the
The nfs.conf file has a 'vers4.0' parameter, but nfsd doesn't currently check it. Signed-off-by: Scott Mayhew <smayhew@redhat.com> --- utils/nfsd/nfsd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)