summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky2012-09-19 01:20:33 +0200
committerSteve French2012-09-25 04:46:30 +0200
commit76ec5e33846de386f44826f145cd725b92c23630 (patch)
tree864a76aa2c0aa618995f8b6587b1aa924d745f91 /fs/cifs/cifsglob.h
parentCIFS: Add oplock break support for SMB2 (diff)
downloadkernel-qcow2-linux-76ec5e33846de386f44826f145cd725b92c23630.tar.gz
kernel-qcow2-linux-76ec5e33846de386f44826f145cd725b92c23630.tar.xz
kernel-qcow2-linux-76ec5e33846de386f44826f145cd725b92c23630.zip
CIFS: Move statfs to ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index a95c56dc7058..3c007fe641f9 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -32,6 +32,8 @@
#include "smb2pdu.h"
#endif
+#define CIFS_MAGIC_NUMBER 0xFF534D42 /* the first four bytes of SMB PDUs */
+
/*
* The sizes of various internal tables and strings
*/
@@ -334,6 +336,9 @@ struct smb_version_operations {
/* send oplock break response */
int (*oplock_response)(struct cifs_tcon *, struct cifs_fid *,
struct cifsInodeInfo *);
+ /* query remote filesystem */
+ int (*queryfs)(const unsigned int, struct cifs_tcon *,
+ struct kstatfs *);
};
struct smb_version_values {