aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-06-19 15:15:30 -0400
committerSteve French <smfrench@gmail.com>2013-06-24 02:56:46 -0400
commit769ee6a4024434d1960acafd7adde38538bbe3da (patch)
tree6155f68bdfce210b203c2a8a93e99c48815c7f76 /fs/cifs/cifsglob.h
parent2b5dc286da3917435106da6431e8d06209b01953 (diff)
Add ability to dipslay SMB3 share flags and capabilities for debugging
SMB3 protocol adds various optional per-share capabilities (and SMB3.02 adds one more beyond that). Add ability to dump (/proc/fs/cifs/DebugData) the share capabilities and share flags to improve debugging. Signed-off-by: Steve French <smfrench@gmail.com> Acked-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index f13cbbeaf098..9a1e37aad3b8 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -223,6 +223,7 @@ struct smb_version_operations {
223 void (*dump_detail)(void *); 223 void (*dump_detail)(void *);
224 void (*clear_stats)(struct cifs_tcon *); 224 void (*clear_stats)(struct cifs_tcon *);
225 void (*print_stats)(struct seq_file *m, struct cifs_tcon *); 225 void (*print_stats)(struct seq_file *m, struct cifs_tcon *);
226 void (*dump_share_caps)(struct seq_file *, struct cifs_tcon *);
226 /* verify the message */ 227 /* verify the message */
227 int (*check_message)(char *, unsigned int); 228 int (*check_message)(char *, unsigned int);
228 bool (*is_oplock_break)(char *, struct TCP_Server_Info *); 229 bool (*is_oplock_break)(char *, struct TCP_Server_Info *);
@@ -809,7 +810,7 @@ struct cifs_tcon {
809#ifdef CONFIG_CIFS_SMB2 810#ifdef CONFIG_CIFS_SMB2
810 bool print:1; /* set if connection to printer share */ 811 bool print:1; /* set if connection to printer share */
811 bool bad_network_name:1; /* set if ret status STATUS_BAD_NETWORK_NAME */ 812 bool bad_network_name:1; /* set if ret status STATUS_BAD_NETWORK_NAME */
812 __u32 capabilities; 813 __le32 capabilities;
813 __u32 share_flags; 814 __u32 share_flags;
814 __u32 maximal_access; 815 __u32 maximal_access;
815 __u32 vol_serial_number; 816 __u32 vol_serial_number;