]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: fix noisy message when mounting shares
authorPaulo Alcantara <pc@manguebit.com>
Tue, 26 Nov 2024 15:43:24 +0000 (12:43 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 27 Nov 2024 00:46:40 +0000 (18:46 -0600)
commit796733054e4a55c78c1c58c6121a550667ebccbf
tree92832bb96f7bdacac002a1d257090395042b9871
parent36008fe6e3dc588e5e9ceae6e82c7f69399eb5d8
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>
fs/smb/client/smb2ops.c