]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: allow "posix" mount option to enable new SMB311 protocol extensions
authorSteve French <stfrench@microsoft.com>
Mon, 21 May 2018 04:41:10 +0000 (23:41 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 30 May 2018 21:06:18 +0000 (16:06 -0500)
commit4d822ce246830f6008b61331843a1bd689f9451c
tree8ae0dbfeee7e85b80d944e2149f4aa529e94015c
parentb5dabc95be7efceef8065dea1224cbd97c298c4a
smb3: allow "posix" mount option to enable new SMB311 protocol extensions

If "posix" (or synonym "unix" for backward compatibility) specified on mount,
and server advertises support for SMB3.11 POSIX negotiate context, then
enable the new posix extensions on the tcon.  This can be viewed by
looking for "posix" in the mount options displayed by /proc/mounts
for that mount (ie if posix extensions allowed by server and the
experimental POSIX extensions also requested on the mount by specifying
"posix" at mount time).

Also add check to warn user if conflicting unix/nounix or posix/noposix specified
on mount.

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c