]> www.infradead.org Git - users/hch/xfs.git/commit
smb: client: fix noisy when tree connecting to DFS interlink targets
authorPaulo Alcantara <pc@manguebit.com>
Wed, 5 Feb 2025 16:22:11 +0000 (13:22 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 6 Feb 2025 03:09:03 +0000 (21:09 -0600)
commit773dc23ff81838b6f74d7fabba5a441cc6a93982
treee9c6b3aa9329c05c36d6282020d761266556f79b
parent77c2e45dbf9d2ced21d2cf6cc3b2a048d57ab7ad
smb: client: fix noisy when tree connecting to DFS interlink targets

When the client attempts to tree connect to a domain-based DFS
namespace from a DFS interlink target, the server will return
STATUS_BAD_NETWORK_NAME and the following will appear on dmesg:

CIFS: VFS:  BAD_NETWORK_NAME: \\dom\dfs

Since a DFS share might contain several DFS interlinks and they expire
after 10 minutes, the above message might end up being flooded on
dmesg when mounting or accessing them.

Print this only once per share.

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