summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-05-17 13:02:51 +0400
committerPavel Shilovsky <pshilovsky@samba.org>2012-05-23 12:33:09 +0400
commiteb37871118abfc30629ee2bef11013eddb42c756 (patch)
tree9ee1a048ccda5ce06e626af41a2eb83cbba6fce9 /fs/cifs/cifsglob.h
parent1887f60103aaeeeb7a3fbf3b366d626043873164 (diff)
downloadlinux-3.10-eb37871118abfc30629ee2bef11013eddb42c756.tar.gz
linux-3.10-eb37871118abfc30629ee2bef11013eddb42c756.tar.bz2
linux-3.10-eb37871118abfc30629ee2bef11013eddb42c756.zip
CIFS: Move protocol specific part from cifs_readv_receive to ops struct
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 9ee832d29ec..825140170b1 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -169,6 +169,12 @@ struct smb_version_operations {
/* check response: verify signature, map error */
int (*check_receive)(struct mid_q_entry *, struct TCP_Server_Info *,
bool);
+ /* data offset from read response message */
+ unsigned int (*read_data_offset)(char *);
+ /* data length from read response message */
+ unsigned int (*read_data_length)(char *);
+ /* map smb to linux error */
+ int (*map_error)(char *, bool);
};
struct smb_version_values {
@@ -179,6 +185,7 @@ struct smb_version_values {
__u32 unlock_lock_type;
size_t header_size;
size_t max_header_size;
+ size_t read_rsp_size;
};
#define HEADER_SIZE(server) (server->vals->header_size)