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)
commit5391b8e1b7b7e5cfa2dd4ffdc4b8c6b64dfd1866
tree5877ba91eb60b80e6b2761b1cb7f76d00bc31de1
parent6b356f6cf941d5054d7fab072cae4a5f8658e3db
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: ce558b0e17f8 ("smb3: Add posix create context for smb3.11 posix mounts")
Fixes: b326614ea215 ("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