Commit f579903ef3e392251dc7e93cb521ddb622fbf8e0
Committed by
Steve French
1 parent
95c99904f6
Exists in
master
and in
4 other branches
cifs: show features compiled in as part of DebugData
Fixed the nit pointed out by Jeff. From: Suresh Jayaraman <sjayaraman@suse.de> Subject: [PATCH 1/2] cifs: show features compiled in as part of DebugData This patch adds the features that are compiled in to the CIFS debugging data as shown below: $cat /proc/fs/cifs/DebugData Display Internal CIFS Data Structures for Debugging --------------------------------------------------- CIFS Version 1.64 Features: dfs fscache posix spnego xattr Active VFS Requests: 0 ... This patch provides a definitive way to tell what features are currently enabled in the running kernel. This could also help debugging. Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de> Cc: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Showing 1 changed file with 25 additions and 0 deletions Side-by-side Diff
fs/cifs/cifs_debug.c
... | ... | @@ -119,6 +119,31 @@ |
119 | 119 | "Display Internal CIFS Data Structures for Debugging\n" |
120 | 120 | "---------------------------------------------------\n"); |
121 | 121 | seq_printf(m, "CIFS Version %s\n", CIFS_VERSION); |
122 | + seq_printf(m, "Features: "); | |
123 | +#ifdef CONFIG_CIFS_DFS_UPCALL | |
124 | + seq_printf(m, "dfs"); | |
125 | + seq_putc(m, ' '); | |
126 | +#endif | |
127 | +#ifdef CONFIG_CIFS_FSCACHE | |
128 | + seq_printf(m, "fscache"); | |
129 | + seq_putc(m, ' '); | |
130 | +#endif | |
131 | +#ifdef CONFIG_CIFS_WEAK_PW_HASH | |
132 | + seq_printf(m, "lanman"); | |
133 | + seq_putc(m, ' '); | |
134 | +#endif | |
135 | +#ifdef CONFIG_CIFS_POSIX | |
136 | + seq_printf(m, "posix"); | |
137 | + seq_putc(m, ' '); | |
138 | +#endif | |
139 | +#ifdef CONFIG_CIFS_UPCALL | |
140 | + seq_printf(m, "spnego"); | |
141 | + seq_putc(m, ' '); | |
142 | +#endif | |
143 | +#ifdef CONFIG_CIFS_XATTR | |
144 | + seq_printf(m, "xattr"); | |
145 | +#endif | |
146 | + seq_putc(m, '\n'); | |
122 | 147 | seq_printf(m, "Active VFS Requests: %d\n", GlobalTotalActiveXid); |
123 | 148 | seq_printf(m, "Servers:"); |
124 | 149 |