Skip to contentSkip to conversation

smb/client: show compress mount option

PATCH Applied ChenXiaoSong 2 participants 2 messages Aug 1 – Aug 2

Subsystems (2)
lore
Share & tools
lore

ChenXiaoSong

author reviewer
#0 lore raw

PATCH 1/1 smb/client: show compress mount option

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, ...)
---
 fs/smb/client/cifsfs.c | 2 ++
 1 file changed, 2 insertions(+)
fs/smb/client/cifsfs.c +2 -0
index 1788d93a2522..a1dacc7d8f74 100644
@@ -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)
Signature · 1 line
2.54.0
Applied
#1 lore raw

merged into cifs-2.6.git for-next

Quoted 30 lines · ChenXiaoSong

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, ...)
---
 fs/smb/client/cifsfs.c | 2 ++
 1 file changed, 2 insertions(+)
fs/smb/client/cifsfs.c +2 -1
index 1788d93a2522..a1dacc7d8f74 100644
@@ -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

Signature · 3 lines
Thanks,

Steve