aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-12-10 14:57:16 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:52 -0500
commit5d8515caeb99940f5ed56d22a03aba20bbe7fdcb (patch)
treeb17ec1fc7bf34a73f65bf8c4b9f837beb54a64f9 /fs/nfs/client.c
parentd4d3c507493afd3c9d19fbe9762f44e790909dbe (diff)
NFS: eliminate NIPQUAD(clp->cl_addr.sin_addr)
To ensure the NFS client displays IPv6 addresses properly, replace address family-specific NIPQUAD() invocations with a call to the RPC client to get a formatted string representing the remote peer's address. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 3b21731ae571..701cd193a014 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1279,10 +1279,10 @@ static int nfs_server_list_show(struct seq_file *m, void *v)
1279 /* display one transport per line on subsequent lines */ 1279 /* display one transport per line on subsequent lines */
1280 clp = list_entry(v, struct nfs_client, cl_share_link); 1280 clp = list_entry(v, struct nfs_client, cl_share_link);
1281 1281
1282 seq_printf(m, "v%u %02x%02x%02x%02x %4hx %3d %s\n", 1282 seq_printf(m, "v%u %s %s %3d %s\n",
1283 clp->rpc_ops->version, 1283 clp->rpc_ops->version,
1284 NIPQUAD(clp->cl_addr.sin_addr), 1284 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR),
1285 ntohs(clp->cl_addr.sin_port), 1285 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_PORT),
1286 atomic_read(&clp->cl_count), 1286 atomic_read(&clp->cl_count),
1287 clp->cl_hostname); 1287 clp->cl_hostname);
1288 1288
@@ -1358,10 +1358,10 @@ static int nfs_volume_list_show(struct seq_file *m, void *v)
1358 (unsigned long long) server->fsid.major, 1358 (unsigned long long) server->fsid.major,
1359 (unsigned long long) server->fsid.minor); 1359 (unsigned long long) server->fsid.minor);
1360 1360
1361 seq_printf(m, "v%u %02x%02x%02x%02x %4hx %-7s %-17s\n", 1361 seq_printf(m, "v%u %s %s %-7s %-17s\n",
1362 clp->rpc_ops->version, 1362 clp->rpc_ops->version,
1363 NIPQUAD(clp->cl_addr.sin_addr), 1363 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR),
1364 ntohs(clp->cl_addr.sin_port), 1364 rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_PORT),
1365 dev, 1365 dev,
1366 fsid); 1366 fsid);
1367 1367