diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index b6c6a3629b07..c7ebeee38c67 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -2937,6 +2937,24 @@ try_mount_again: | |||
2937 | (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE)); | 2937 | (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE)); |
2938 | 2938 | ||
2939 | remote_path_check: | 2939 | remote_path_check: |
2940 | #ifdef CONFIG_CIFS_DFS_UPCALL | ||
2941 | /* | ||
2942 | * Perform an unconditional check for whether there are DFS | ||
2943 | * referrals for this path without prefix, to provide support | ||
2944 | * for DFS referrals from w2k8 servers which don't seem to respond | ||
2945 | * with PATH_NOT_COVERED to requests that include the prefix. | ||
2946 | * Chase the referral if found, otherwise continue normally. | ||
2947 | */ | ||
2948 | if (referral_walks_count == 0) { | ||
2949 | int refrc = expand_dfs_referral(xid, pSesInfo, volume_info, | ||
2950 | cifs_sb, &mount_data, false); | ||
2951 | if (!refrc) { | ||
2952 | referral_walks_count++; | ||
2953 | goto try_mount_again; | ||
2954 | } | ||
2955 | } | ||
2956 | #endif | ||
2957 | |||
2940 | /* check if a whole path (including prepath) is not remote */ | 2958 | /* check if a whole path (including prepath) is not remote */ |
2941 | if (!rc && tcon) { | 2959 | if (!rc && tcon) { |
2942 | /* build_path_to_root works only when we have a valid tcon */ | 2960 | /* build_path_to_root works only when we have a valid tcon */ |