]> git.hungrycats.org Git - linux/commit
smb/server: implement FSCTL_SET_COMPRESSION ioctl handler
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Mon, 8 Jun 2026 14:01:26 +0000 (14:01 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 16 Jun 2026 23:57:21 +0000 (18:57 -0500)
commit7eeb7b6772f02772b92c39146603005d0a1cb324
tree839c77a2f60962264541e8b7675b815f4533d405
parentc91f4543ddecc49c96c175a90f51c991957f72e3
smb/server: implement FSCTL_SET_COMPRESSION ioctl handler

Example:

  1. client: smbinfo setcompression no /mnt/file
  2. client: smbinfo getcompression /mnt/file
             Compression: 0 (NONE)
  3. client: smbinfo setcompression lznt1 /mnt/file
  4. client: smbinfo getcompression /mnt/file
             Compression: 2 (LZNT1)
  5. client: smbinfo setcompression default /mnt/file
  6. client: smbinfo getcompression /mnt/file
             Compression: 2 (LZNT1)

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smbfsctl.h
fs/smb/server/smb2pdu.c
fs/smb/server/vfs.c
fs/smb/server/vfs.h