aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2018-01-31 15:34:37 -0500
committerSteve French <smfrench@gmail.com>2018-02-07 10:36:38 -0500
commitede2e520a1484924a55c8fc77a8256f5d33d2ab2 (patch)
treedc7d71a3db866136346c9641e3dbd00001e1c853
parent617aebe6a97efa539cc4b8a52adccd89596e6be0 (diff)
Add some missing debug fields in server and tcon structs
Allow dumping out debug information on dialect, signing, unix extensions and encryption Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
-rw-r--r--fs/cifs/cifs_debug.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index c7a863219fa3..e35e711db68e 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -128,6 +128,10 @@ static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon)
128 seq_puts(m, " type: CDROM "); 128 seq_puts(m, " type: CDROM ");
129 else 129 else
130 seq_printf(m, " type: %d ", dev_type); 130 seq_printf(m, " type: %d ", dev_type);
131 if (tcon->seal)
132 seq_printf(m, " Encrypted");
133 if (tcon->unix_ext)
134 seq_printf(m, " POSIX Extensions");
131 if (tcon->ses->server->ops->dump_share_caps) 135 if (tcon->ses->server->ops->dump_share_caps)
132 tcon->ses->server->ops->dump_share_caps(m, tcon); 136 tcon->ses->server->ops->dump_share_caps(m, tcon);
133 137
@@ -246,7 +250,10 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
246 atomic_read(&server->smbd_conn->mr_used_count)); 250 atomic_read(&server->smbd_conn->mr_used_count));
247skip_rdma: 251skip_rdma:
248#endif 252#endif
249 seq_printf(m, "\nNumber of credits: %d", server->credits); 253 seq_printf(m, "\nNumber of credits: %d Dialect 0x%x",
254 server->credits, server->dialect);
255 if (server->sign)
256 seq_printf(m, " signed");
250 i++; 257 i++;
251 list_for_each(tmp2, &server->smb_ses_list) { 258 list_for_each(tmp2, &server->smb_ses_list) {
252 ses = list_entry(tmp2, struct cifs_ses, 259 ses = list_entry(tmp2, struct cifs_ses,