summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2024-05-06 20:01:24 -0300
committerEnzo Matsumiya <ematsumiya@suse.de>2024-05-12 17:51:52 -0600
commit9fedbed0ef67adf6f0cfbf67fd19384cd2f47064 (patch)
treeadb1beb38bbd84155566c776b62240662dae47dc
parent9cfb5aaa34094979de64ca490e27b76d113bd81e (diff)
downloadlinux-smb-compression-async.tar.gz
linux-smb-compression-async.tar.bz2
linux-smb-compression-async.zip
smb: client: show share compression info in DebugDatasmb-compression-async
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
-rw-r--r--fs/smb/client/cifs_debug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/smb/client/cifs_debug.c b/fs/smb/client/cifs_debug.c
index 6d67cc280948..97eedfcd57cc 100644
--- a/fs/smb/client/cifs_debug.c
+++ b/fs/smb/client/cifs_debug.c
@@ -112,6 +112,8 @@ static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon)
(tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
(tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA))
seq_puts(m, " encrypted");
+ if (tcon->share_flags & SMB2_SHAREFLAG_COMPRESS_DATA)
+ seq_puts(m, " compressed");
if (tcon->nocase)
seq_printf(m, " nocase");
if (tcon->unix_ext)
@@ -481,7 +483,9 @@ skip_rdma:
else if (!server->compression.requested)
seq_puts(m, "disabled on mount");
else if (server->compression.enabled)
- seq_printf(m, "enabled (%s)", compression_alg_str(server->compression.alg));
+ seq_printf(m, "enabled (%s, %schained)",
+ compression_alg_str(server->compression.alg),
+ server->compression.chained ? "" : "un");
else
seq_puts(m, "disabled (not supported by this server)");