]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
cifs: fix confusing warning message on reconnect
authorSteve French <stfrench@microsoft.com>
Tue, 1 Jan 2019 23:19:45 +0000 (17:19 -0600)
committerSteve French <stfrench@microsoft.com>
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 <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
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 {