smb: client: improve DFS mount check
authorPaulo Alcantara <pc@manguebit.com>
Wed, 28 Jun 2023 00:24:50 +0000 (21:24 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 28 Jun 2023 20:49:02 +0000 (15:49 -0500)
commit5f2a0afa9890e728428db2ed9281bddca242e90b
tree8f53e5ac09b9760f27190ca67f46da02f7dfc088
parent3ae872de410751fe5e629e04da491a632d95201c
smb: client: improve DFS mount check

Some servers may return error codes from REQ_GET_DFS_REFERRAL requests
that are unexpected by the client, so to make it easier, assume
non-DFS mounts when the client can't get the initial DFS referral of
@ctx->UNC in dfs_mount_share().

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dfs.c