[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1927160445.21851828.1408504000719.JavaMail.zimbra@redhat.com>
Date: Tue, 19 Aug 2014 23:06:40 -0400 (EDT)
From: Xiong Zhou <xzhou@...hat.com>
To: trond.myklebust@...marydata.com
Cc: linux-nfs@...r.kernel.org, ben@...adent.org.uk,
linux-kernel@...r.kernel.org
Subject: [PATCH] nfs: use canonical path in nfs_show_devname
When export root dir(/) via nfs, and mount a particular dir under root, eg
/nfsexport, there will be defect double slash output in /proc/mounts, like
localhost://nfsexport.
Signed-off-by: Xiong Zhou <xzhou@...hat.com>
---
fs/nfs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index e4499d5..62b1cab 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -780,7 +780,7 @@ int nfs_show_devname(struct seq_file *m, struct dentry *root)
int err = 0;
if (!page)
return -ENOMEM;
- devname = nfs_path(&dummy, root, page, PAGE_SIZE, 0);
+ devname = nfs_path(&dummy, root, page, PAGE_SIZE, 1);
if (IS_ERR(devname))
err = PTR_ERR(devname);
else
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists