diff options
author | Paulo Alcantara <palcantara@suse.de> | 2018-11-14 20:20:31 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-28 17:13:11 +0100 |
commit | a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7 (patch) | |
tree | 211c5626d7a2e56f6175b4a516dcbcfbf37dde27 /fs/cifs/cifsproto.h | |
parent | cifs: Only free DFS target list if we actually got one (diff) | |
download | linux-a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7.tar.xz linux-a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7.zip |
cifs: Add support for failover in smb2_reconnect()
After a successful failover in cifs_reconnect(), the smb2_reconnect()
function will make sure to reconnect every tcon to new target server.
For SMB2+.
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index f277bc5a0c4e..336c116995d7 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -565,6 +565,8 @@ void cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc); extern void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page, unsigned int *len, unsigned int *offset); +void extract_unc_hostname(const char *unc, const char **h, size_t *len); + #ifdef CONFIG_CIFS_DFS_UPCALL static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, const char *old_path, |