summaryrefslogtreecommitdiff
path: root/fs/smb/client
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.com>2025-02-05 13:22:11 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-22 12:56:45 -0700
commitd079596144fa25bcbb6b7f42452277e9acf0ba67 (patch)
treedaba3c0af20070305df5541422634aa60339a751 /fs/smb/client
parent1650bbf3ea21375f83af0c020c6b0ad6ed9b691a (diff)
downloadlinux-d079596144fa25bcbb6b7f42452277e9acf0ba67.tar.gz
linux-d079596144fa25bcbb6b7f42452277e9acf0ba67.tar.bz2
linux-d079596144fa25bcbb6b7f42452277e9acf0ba67.zip
smb: client: fix noisy when tree connecting to DFS interlink targets
[ Upstream commit 773dc23ff81838b6f74d7fabba5a441cc6a93982 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/smb/client')
-rw-r--r--fs/smb/client/smb2pdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c
index 10eca164c838..f1f55fbd0eea 100644
--- a/fs/smb/client/smb2pdu.c
+++ b/fs/smb/client/smb2pdu.c
@@ -2169,7 +2169,7 @@ tcon_exit:
tcon_error_exit:
if (rsp && rsp->hdr.Status == STATUS_BAD_NETWORK_NAME)
- cifs_tcon_dbg(VFS, "BAD_NETWORK_NAME: %s\n", tree);
+ cifs_dbg(VFS | ONCE, "BAD_NETWORK_NAME: %s\n", tree);
goto tcon_exit;
}