]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix mount options set in automount
authorPaulo Alcantara (SUSE) <pc@cjr.nz>
Thu, 9 Jan 2020 13:03:19 +0000 (10:03 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 27 Jan 2020 01:24:16 +0000 (19:24 -0600)
commit5b1e72fcf61f060df6942890773121f215828174
treefa5e325df37d7a3ce681ee675b543d3b93d5d54e
parentc399561dcf956e9c641c3070c9dd47a0b4b76247
cifs: Fix mount options set in automount

Starting from afa39fcab438, we must set the mount options based on the
DFS full path rather than the resolved target, that is, cifs_mount()
will be responsible for resolving the DFS link (cached) as well as
performing failover to any other targets in the referral.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reported-by: Martijn de Gouw <martijn.de.gouw@prodrive-technologies.com>
Fixes: afa39fcab438 ("cifs: Add support for failover in cifs_mount()")
Link: https://lore.kernel.org/linux-cifs/39643d7d-2abb-14d3-ced6-c394fab9a777@prodrive-technologies.com
Tested-by: Martijn de Gouw <martijn.de.gouw@prodrive-technologies.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_dfs_ref.c