From 33ef5bc7a69290a1ba122633241a154eb74f350a Mon Sep 17 00:00:00 2001 From: Enzo Matsumiya Date: Mon, 6 May 2024 20:01:24 -0300 Subject: smb: client: show share compression info in DebugData Signed-off-by: Enzo Matsumiya --- fs/smb/client/cifs_debug.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fs/smb/client/cifs_debug.c') 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)"); -- cgit v1.2.3