Skip to content

Commit af31d2a

Browse files
committed
smb: client: fix noisy when tree connecting to DFS interlink targets
JIRA: https://issues.redhat.com/browse/RHEL-78152 commit 773dc23 Author: Paulo Alcantara <pc@manguebit.com> Date: Wed Feb 5 13:22:11 2025 -0300 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> Signed-off-by: Paulo Alcantara <paalcant@redhat.com>
1 parent 5725ef4 commit af31d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,7 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,
21672167

21682168
tcon_error_exit:
21692169
if (rsp && rsp->hdr.Status == STATUS_BAD_NETWORK_NAME)
2170-
cifs_tcon_dbg(VFS, "BAD_NETWORK_NAME: %s\n", tree);
2170+
cifs_dbg(VFS | ONCE, "BAD_NETWORK_NAME: %s\n", tree);
21712171
goto tcon_exit;
21722172
}
21732173

0 commit comments

Comments
 (0)