Commit 11375a5
cifs: only update prefix path of DFS links in cifs_tree_connect()
For DFS root mounts that contain a prefix path, do not change them
after failover.
E.g., if the user mounts
//srvA/root/dir1
and then lost connection to srvA, it will reconnect to
//srvB/root/dir1
In case of DFS links, which may resolve to different prefix paths
depending on their list of targets, the following must be supported:
- mount //srvA/root/link/bar
- connect to //srvA/share
- set prefix path to "bar"
- lost connection to srvA
- reconnect to next target: //srvB/share/foo
- set new prefix path to "foo/bar"
In cifs_tree_connect(), check the server_type field of the cached DFS
referral to determine whether or not prefix path should be updated.
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent c6a80e1 commit 11375a5
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5548 | 5548 | | |
5549 | 5549 | | |
5550 | 5550 | | |
| 5551 | + | |
| 5552 | + | |
5551 | 5553 | | |
5552 | 5554 | | |
5553 | 5555 | | |
| |||
5563 | 5565 | | |
5564 | 5566 | | |
5565 | 5567 | | |
5566 | | - | |
| 5568 | + | |
5567 | 5569 | | |
5568 | 5570 | | |
| 5571 | + | |
| 5572 | + | |
5569 | 5573 | | |
5570 | 5574 | | |
5571 | 5575 | | |
| |||
5609 | 5613 | | |
5610 | 5614 | | |
5611 | 5615 | | |
5612 | | - | |
| 5616 | + | |
| 5617 | + | |
5613 | 5618 | | |
5614 | 5619 | | |
5615 | 5620 | | |
| |||
0 commit comments