]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Trim extra slash in v4 nfs_path
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 15 Jun 2016 19:02:55 +0000 (15:02 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 24 Oct 2016 16:06:01 +0000 (12:06 -0400)
commitc4380630a9b01ecd3f65e24e3ec13767c69ec830
tree7729ab697d720df89323706cf9751d1ed0531ac0
parent0e8562077ddf33119f16aaa7fc9c56f117f22309
NFS: Trim extra slash in v4 nfs_path

A NFSv4 mount of a subdirectory will show an extra slash (as in
'server://path') in proc's mountinfo which will not match the device name
and path.  This can cause problems for programs searching for the mount.
Fix this by checking for a leading slash in the dentry path, if so trim
away any trailing slashes in the device name.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/namespace.c