]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix check of dfs interlinks
authorPaulo Alcantara <pc@cjr.nz>
Mon, 14 Jun 2021 15:58:20 +0000 (12:58 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commit7c536f402fb4193e91c5667fd1bfbee34a9a67a8
tree18e5679e56ea0d91d1cb216fa31abb4a704c7fc4
parenta8e8bd7466cd88ca3d8694e9c0c9f4c76c6990e5
cifs: fix check of dfs interlinks

Interlink is a special type of DFS link that resolves to a different
DFS domain-based namespace.  To determine whether it is an interlink
or not, check if ReferralServers and StorageServers bits are set to 1
and 0 respectively in ReferralHeaderFlags, as specified in MS-DFSC
3.1.5.4.5 Determining Whether a Referral Response is an Interlink.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c