smb3: do not send compression info by default
authorSteve French <stfrench@microsoft.com>
Tue, 25 Jun 2019 01:39:04 +0000 (20:39 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 8 Jul 2019 03:37:43 +0000 (22:37 -0500)
commit9fe5ff1c5d6a2a6c4ed4ba051a858571fdb7834c
tree9568f71d775ca700e6a717a5466c528abfea47c0
parent412094a8fb0711e9f332bed6723aa59706a4ff7e
smb3: do not send compression info by default

Since in theory a server could respond with compressed read
responses even if not requested on read request (assuming that
a compression negcontext is sent in negotiate protocol) - do
not send compression information during negotiate protocol
unless the user asks for compression explicitly (compression
is experimental), and add a mount warning that compression
is experimental.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/smb2pdu.c