Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1485327 Details for
Bug 1625032
[nfsd] fail to disable major NFS version 4 using "vers4=n" in /etc/nfs.conf since nfs-utils-1.3.0-0.59.el7
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch the bug in the same style as upstream
nfs-utils-fixup.patch (text/plain), 1.36 KB, created by
Alice Mitchell
on 2018-09-20 21:56:49 UTC
(
hide
)
Description:
Patch the bug in the same style as upstream
Filename:
MIME Type:
Creator:
Alice Mitchell
Created:
2018-09-20 21:56:49 UTC
Size:
1.36 KB
patch
obsolete
>diff -ur nfs-utils-1.3.0-59.orig/utils/nfsd/nfsd.c nfs-utils-1.3.0-59.bug/utils/nfsd/nfsd.c >--- nfs-utils-1.3.0-59.orig/utils/nfsd/nfsd.c 2018-09-12 08:59:27.000000000 -0400 >+++ nfs-utils-1.3.0-59.bug/utils/nfsd/nfsd.c 2018-09-20 17:51:49.000000000 -0400 >@@ -81,6 +81,9 @@ > > conf_init(); > xlog_from_conffile("nfsd"); >+ >+ nfssvc_get_minormask(&minormask); >+ > count = conf_get_num("nfsd", "threads", count); > grace = conf_get_num("nfsd", "grace-time", grace); > lease = conf_get_num("nfsd", "lease-time", lease); >@@ -99,20 +102,22 @@ > for (i = 2; i <= 4; i++) { > char tag[10]; > sprintf(tag, "vers%d", i); >- if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(versbits, i))) >+ if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(versbits, i))) { > NFSCTL_VERSET(versbits, i); >- else >+ if (i == 4) >+ minorvers = minorversset = minormask; >+ } else { > NFSCTL_VERUNSET(versbits, i); >+ if (i == 4) { >+ minorvers = 0; >+ minorversset = minormask; >+ } >+ } > } > >- nfssvc_get_minormask(&minormask); > /* 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++) { > char tag[20]; > sprintf(tag, "vers4.%d", i); >Only in nfs-utils-1.3.0-59.bug/utils/nfsd: .nfsd.c.swp
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1625032
:
1483344
|
1483380
| 1485327