Sachin Prabhu 374402a2a1 cifs_get_root shouldn't use path with tree name
When a server returns the optional flag SMB_SHARE_IS_IN_DFS in response
to a tree connect, cifs_build_path_to_root() will return a pathname
which includes the hostname. This causes problems with cifs_get_root()
which separates each component and does a lookup for each component of
the path which in this case will incorrectly include looking up the
hostname component as a path component.

We encountered a problem with dfs shares hosted by a Netapp. When
connecting to nodes pointed to by the DFS share. The tree connect for
these nodes return SMB_SHARE_IS_IN_DFS resulting failures in lookup
in cifs_get_root().

RH bz: 1373153
The patch was tested against a Netapp simulator and by a user using an
actual Netapp server.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reported-by: Pierguido Lambri <plambri@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
2016-12-15 01:42:54 -06:00
..
2016-10-13 19:48:11 -05:00
2016-09-16 12:44:21 +02:00
2013-11-08 05:57:46 +09:00
2016-12-02 16:04:33 -08:00
2015-06-27 20:23:32 -07:00
2016-12-15 00:21:37 -06:00
2014-12-14 14:55:57 -06:00
2007-06-05 18:30:44 +00:00
2016-06-23 23:45:17 -05:00
2016-10-13 19:48:20 -05:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00