diff options
author | Steve French <stfrench@microsoft.com> | 2019-06-25 04:39:04 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-07-08 06:37:43 +0300 |
commit | 9fe5ff1c5d6a2a6c4ed4ba051a858571fdb7834c (patch) | |
tree | 9568f71d775ca700e6a717a5466c528abfea47c0 /fs/cifs/cifsglob.h | |
parent | 412094a8fb0711e9f332bed6723aa59706a4ff7e (diff) | |
download | linux-9fe5ff1c5d6a2a6c4ed4ba051a858571fdb7834c.tar.xz |
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 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
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 */ }; /** |