Skip to content

Commit 55a7f00

Browse files
author
Steve French
committed
cifs: fix confusing warning message on reconnect
When DFS is not used on the mount we should not be mentioning DFS in the warning message on reconnect (it could be confusing). Signed-off-by: Steve French <[email protected]> Reviewed-by: Ronnie Sahlberg <[email protected]>
1 parent 6d2f84e commit 55a7f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
483483
cifs_sb = NULL;
484484
} else {
485485
rc = reconn_setup_dfs_targets(cifs_sb, &tgt_list, &tgt_it);
486-
if (rc) {
486+
if (rc && (rc != -EOPNOTSUPP)) {
487487
cifs_dbg(VFS, "%s: no target servers for DFS failover\n",
488488
__func__);
489489
} else {

0 commit comments

Comments
 (0)