aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2020-07-21 12:36:43 +0000
committerSteve French <[email protected]>2020-08-02 23:00:26 +0000
commit11375a59a99ca05086a1837c27d79e92dd8d4aed (patch)
tree4dd2c0b34fb7d2cd063f2dc1da11d490c15e415c /tools/testing/selftests/bpf/prog_tests/autoload.c
parentcifs: fix double free error on share and prefix (diff)
downloadkernel-11375a59a99ca05086a1837c27d79e92dd8d4aed.tar.gz
kernel-11375a59a99ca05086a1837c27d79e92dd8d4aed.zip
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) <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions