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 160100 Details for
Bug 249574
autofs passes a wrong program version to the nfs NULL proc
[?]
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]
Version 5 patch for this issue
autofs-5.0.2-fix-nfs-version-in-get-supported-ver-and-cost.patch (text/plain), 1009 bytes, created by
Ian Kent
on 2007-07-27 08:05:44 UTC
(
hide
)
Description:
Version 5 patch for this issue
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2007-07-27 08:05:44 UTC
Size:
1009 bytes
patch
obsolete
>diff --git a/modules/replicated.c b/modules/replicated.c >index de1b40c..0764d4a 100644 >--- a/modules/replicated.c >+++ b/modules/replicated.c >@@ -607,12 +607,31 @@ static int get_supported_ver_and_cost(struct host *host, unsigned int version, c > > parms.pm_prog = NFS_PROGRAM; > >+ /* >+ * The version passed in is the version as defined in >+ * include/replicated.h. However, the version we want to send >+ * off to the rpc calls should match the program version of NFS. >+ * So, we do the conversion here. >+ */ > if (version & UDP_SELECTED_MASK) { > proto = "udp"; >- vers = (version << 8); >- } else { >+ version >>= 8; >+ } else > proto = "tcp"; >- vers = version; >+ >+ switch (version) { >+ case NFS2_SUPPORTED: >+ vers = NFS2_VERSION; >+ break; >+ case NFS3_SUPPORTED: >+ vers = NFS3_VERSION; >+ break; >+ case NFS4_SUPPORTED: >+ vers = NFS4_VERSION; >+ break; >+ default: >+ crit(LOGOPT_ANY, "called with invalid version: 0x%x\n", version); >+ return 0; > } > > rpc_info.proto = getprotobyname(proto);
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 249574
:
159951
| 160100