diff options
author | Paulo Alcantara <pc@cjr.nz> | 2021-02-25 02:59:23 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-02-25 21:19:15 +0300 |
commit | 5ff2836ed3a5c24420a7235be25a462594cdc4ea (patch) | |
tree | 20bc10e8ef8c989a70266d7353f3d27b1ecc71e3 /fs/cachefiles | |
parent | ff2c54a04097dee0b8899c485360719844d923f8 (diff) | |
download | linux-5ff2836ed3a5c24420a7235be25a462594cdc4ea.tar.xz |
cifs: introduce helper for finding referral server to improve DFS target resolution
Some servers seem to mistakenly report different values for
capabilities and share flags, so we can't always rely on those values
to decide whether the resolved target can handle any new DFS
referrals.
Add a new helper is_referral_server() to check if all resolved targets
can handle new DFS referrals by directly looking at the
GET_DFS_REFERRAL.ReferralHeaderFlags value as specified in MS-DFSC
2.2.4 RESP_GET_DFS_REFERRAL in addition to is_tcon_dfs().
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Cc: stable@vger.kernel.org # 5.11
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cachefiles')
0 files changed, 0 insertions, 0 deletions