aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2019-06-24 20:39:04 -0500
committerSteve French <stfrench@microsoft.com>2019-07-07 22:37:43 -0500
commit9fe5ff1c5d6a2a6c4ed4ba051a858571fdb7834c (patch)
tree9568f71d775ca700e6a717a5466c528abfea47c0 /fs/cifs/cifsglob.h
parentsmb3: add new mount option to retrieve mode from special ACE (diff)
downloadlinux-dev-9fe5ff1c5d6a2a6c4ed4ba051a858571fdb7834c.tar.xz
linux-dev-9fe5ff1c5d6a2a6c4ed4ba051a858571fdb7834c.zip
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>
Diffstat (limited to '')
-rw-r--r--fs/cifs/cifsglob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index a4af850cd20a..fe610e7e3670 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -601,6 +601,7 @@ struct smb_vol {
__u64 snapshot_time; /* needed for timewarp tokens */
__u32 handle_timeout; /* persistent and durable handle timeout in ms */
unsigned int max_credits; /* smb3 max_credits 10 < credits < 60000 */
+ __u16 compression; /* compression algorithm 0xFFFF default 0=disabled */
};
/**