Add support for new Compression Negotiate Context

Steve French smfrench at
Sat Apr 27 03:43:22 UTC 2019

Add support to negotiate the compression context, and also saved off
to display in /proc/fs/cifs/DebugData.  Future patch will add use for
it on the wire.

Note in /proc/fs/cifs/DebugData below (mounted to Windows 10) it defaulted
to LZ77 compression algorithm.  See MS-SMB2 and and MS-XCA

Number of credits: 326 Dialect 0x311 COMPRESS_LZ77 signed
1) Name: Uses: 1 Capability: 0x300067    Session Status:
1 TCP status: 1 Instance: 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb3-Negotiate-and-save-preferred-compression-algori.patch
Type: text/x-patch
Size: 5778 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list