]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Honor 'posix' flag for multiuser mounts
authorPaul Aurich <paul@darkrain42.org>
Fri, 26 Jun 2020 19:58:09 +0000 (12:58 -0700)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Jul 2020 00:41:36 +0000 (19:41 -0500)
commit4ea774a5304c67ad91d6ed0bc7fd2745ca6de821
tree5877ba91eb60b80e6b2761b1cb7f76d00bc31de1
parentc0ae0293b48aa84317138ef0c20e8c7a1daa4c4c
SMB3: Honor 'posix' flag for multiuser mounts

The flag from the primary tcon needs to be copied into the volume info
so that cifs_get_tcon will try to enable extensions on the per-user
tcon. At that point, since posix extensions must have already been
enabled on the superblock, don't try to needlessly adjust the mount
flags.

Fixes: 975aa1d50d3e ("smb3: Add posix create context for smb3.11 posix mounts")
Fixes: 807e3c6fbb9f ("smb3: allow "posix" mount option to enable new SMB311 protocol extensions")
Signed-off-by: Paul Aurich <paul@darkrain42.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/connect.c