]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
smb/client: show compress mount option
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Sat, 1 Aug 2026 07:55:15 +0000 (07:55 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 3 Aug 2026 01:21:22 +0000 (20:21 -0500)
Example:

  1. mount -t cifs -o compress //localhost/test /mnt
  2. mount | grep cifs
     //localhost/test on /mnt type cifs (..., compress, ...)

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c

index 1788d93a252246ebb0fae1e8cb7026e04fd7d363..a1dacc7d8f74b65cb9e8ac1ae21d2ba727221d7d 100644 (file)
@@ -692,6 +692,8 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
                seq_puts(s, ",seal");
        else if (tcon->ses->server->ignore_signature)
                seq_puts(s, ",signloosely");
+       if (cifs_sb->ctx->compress)
+               seq_puts(s, ",compress");
        if (tcon->nocase)
                seq_puts(s, ",nocase");
        if (tcon->nodelete)