aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2007-07-30 08:47:38 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:15:39 -0400
commitddc01c0813dc07ca7a2bd32c143a9b54a64915ce (patch)
tree19bd2ac9bd5f3148879384a9017a077582de1bc6 /fs/nfs/super.c
parentf8cf3678f4885d66475b19b10ec2e9918ff2ca1c (diff)
[NFS] [PATCH] NFS: show addr=ipaddr in /proc/mounts rather than
A minor thing, but useful when working with a server with multiple addrs. This looks like it might also be necessary if Miklos' effort to eliminate /etc/mtab ever comes to fruition. When displaying mount options in /proc/mounts, the kernel prints "addr=hostname". This info is redundant since we already have the hostname displayed as part of the "device" section of the mount. This patch changes it to display the IP address to which the socket is connected. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index b878528b64c1..42b8c671da35 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -506,8 +506,8 @@ static int nfs_show_options(struct seq_file *m, struct vfsmount *mnt)
506 506
507 nfs_show_mount_options(m, nfss, 0); 507 nfs_show_mount_options(m, nfss, 0);
508 508
509 seq_puts(m, ",addr="); 509 seq_printf(m, ",addr="NIPQUAD_FMT,
510 seq_escape(m, nfss->nfs_client->cl_hostname, " \t\n\\"); 510 NIPQUAD(nfss->nfs_client->cl_addr.sin_addr));
511 511
512 return 0; 512 return 0;
513} 513}