Skip to content

Commit 7967330

Browse files
Paulo AlcantaraSteve French
authored andcommitted
smb: client: fix noisy message when mounting shares
When the client unconditionally attempts to get an DFS referral to check if share is DFS, some servers may return different errors that aren't handled in smb2_get_dfs_refer(), so the following will be logged in dmesg: CIFS: VFS: \\srv\IPC$ smb2_get_dfs_refer: ioctl error... which can confuse some users while mounting an SMB share. Fix this by logging such error with FYI. Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 36008fe commit 7967330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/smb2ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2999,7 +2999,7 @@ smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses,
29992999
rc = -EIO;
30003000
if (rc) {
30013001
if (!is_retryable_error(rc) && rc != -ENOENT && rc != -EOPNOTSUPP)
3002-
cifs_tcon_dbg(VFS, "%s: ioctl error: rc=%d\n", __func__, rc);
3002+
cifs_tcon_dbg(FYI, "%s: ioctl error: rc=%d\n", __func__, rc);
30033003
goto out;
30043004
}
30053005

0 commit comments

Comments
 (0)