]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: add build_path_from_dentry_optional_prefix()
authorAurelien Aptel <aaptel@suse.com>
Mon, 13 Feb 2017 15:14:17 +0000 (16:14 +0100)
committerSteve French <smfrench@gmail.com>
Thu, 2 Mar 2017 04:26:10 +0000 (22:26 -0600)
commit17c5f8cefcd00e38d5635c8f945fe5363a46e459
tree9812409d38f43381d1b2bcc001be965b7d202d43
parentac37fa01a576432689687e5c80ab1c0d30904138
CIFS: add build_path_from_dentry_optional_prefix()

this function does the same thing as add build_path_from_dentry() but
takes a boolean parameter to decide whether or not to prefix the path
with the tree name.

we cannot rely on tcon->Flags & SMB_SHARE_IS_IN_DFS for SMB2 as smb2
code never sets tcon->Flags but it sets tcon->share_flags and it seems
the SMB_SHARE_IS_IN_DFS has different semantics in SMB2: the prefix
shouldn't be added everytime it was in SMB1.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_dfs_ref.c
fs/cifs/cifsproto.h
fs/cifs/dir.c