Re: [PATCH] smb/client: show compress mount option
Steve French <[email protected]> Sun, 2 Aug 2026 13:24:28 -0500
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <CAH2r5mt+trRma4YjjBf8uDs=T_D_r-vSfdpKWak0cn=PMCqP3g@mail.gmail.com> |
merged into cifs-2.6.git for-next On Sat, Aug 1, 2026 at 2:56=E2=80=AFAM ChenXiaoSong <[email protected]> wrote: > > From: ChenXiaoSong <[email protected]> > > 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 <[email protected]> > --- > fs/smb/client/cifsfs.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c > index 1788d93a2522..a1dacc7d8f74 100644 > --- a/fs/smb/client/cifsfs.c > +++ b/fs/smb/client/cifsfs.c > @@ -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) > -- > 2.54.0 > --=20 Thanks, Steve