nfs: add server port to rpc_pipe info file
Subsystems (3)
PATCH 1/2 nfs: add server port to rpc_pipe info file
On the client, when an alternate server port is specified on the mount commandline, we need to make sure gssd knows about it.
Also, on the server side, when we're sending krb5 callbacks to the client, we'll use the same mechanism to let gssd know about the callback port.
Thanks to Olga Kornievskaia for testing and for an earlier implementation.
--- net/sunrpc/rpc_pipe.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/sunrpc/rpc_pipe.c +1 -0
@@ -329,6 +329,7 @@ rpc_show_info(struct seq_file *m, void *v) clnt->cl_prog, clnt->cl_vers);seq_printf (m,"address: %s\n" ,rpc_peeraddr2str (clnt,RPC_DISPLAY_ADDR ));seq_printf (m,"protocol: %s\n" ,rpc_peeraddr2str (clnt,RPC_DISPLAY_PROTO )); +seq_printf (m,"port: %s\n" ,rpc_peeraddr2str (clnt,RPC_DISPLAY_PORT ));return 0 ; }
Signature · 11 lines
1.5.3.rc5.19.g0734d ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
PATCH 2/2 SUNRPC: Fix default hostname created in rpc_create()
Since 43780b87fa7..., rpc_create() fills in a default hostname based on the ip address if the servername passed in is null. A small typo made that default incorrect. (But this information appears to be used only for debugging right now, so I don't believe the typo causes any bugs in the current kernel.)
Thanks to Olga Kornievskaia for bug report and testing.
--- net/sunrpc/clnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/clnt.c +1 -1
@@ -253,7 +253,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)*/ if (args->servername ==NULL ) {struct sockaddr_in *addr = - (struct sockaddr_in *) &args->address; + (struct sockaddr_in *) args->address;snprintf (servername,sizeof (servername),NIPQUAD_FMT ,NIPQUAD (addr->sin_addr.s_addr)); args->servername = servername;
Signature · 11 lines
1.5.3.rc5.19.g0734d ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs