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)
commitb326614ea2159ea5c835d320f261d05d080cd201
tree8ae0dbfeee7e85b80d944e2149f4aa529e94015c
parentfcef0db6d630ccadaa65138b77eac5fce16a13c9
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