]> Git Repo - linux.git/commitdiff
cifs: fix confusing warning message on reconnect
authorSteve French <[email protected]>
Tue, 1 Jan 2019 23:19:45 +0000 (17:19 -0600)
committerSteve French <[email protected]>
Thu, 3 Jan 2019 05:03:56 +0000 (23:03 -0600)
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]>
fs/cifs/connect.c

index 69b9d5606ebac772ba590f08521106f46764e3f9..f66529679ca2c6238c02c8c38b0e202c3b27398c 100644 (file)
@@ -483,7 +483,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
                cifs_sb = NULL;
        } else {
                rc = reconn_setup_dfs_targets(cifs_sb, &tgt_list, &tgt_it);
-               if (rc) {
+               if (rc && (rc != -EOPNOTSUPP)) {
                        cifs_dbg(VFS, "%s: no target servers for DFS failover\n",
                                 __func__);
                } else {
This page took 0.05418 seconds and 4 git commands to generate.