aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-07-12 10:30:44 -0400
committerPavel Shilovsky <pshilovsky@samba.org>2012-07-24 13:55:17 -0400
commit9094fad1ed90caebd25b1bdec3c8982d079356ee (patch)
treea6a111f572f18533d31d80a771fe848507cb26b6 /fs/cifs/smb2ops.c
parentf6d7617862e106affc59c6933099e45629af5c4e (diff)
CIFS: Add echo request support for SMB2
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 8672e49d1c4c..483bd0ba2ecb 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -207,6 +207,12 @@ smb2_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb,
207 return NULL; 207 return NULL;
208} 208}
209 209
210static bool
211smb2_can_echo(struct TCP_Server_Info *server)
212{
213 return server->echoes;
214}
215
210struct smb_version_operations smb21_operations = { 216struct smb_version_operations smb21_operations = {
211 .setup_request = smb2_setup_request, 217 .setup_request = smb2_setup_request,
212 .setup_async_request = smb2_setup_async_request, 218 .setup_async_request = smb2_setup_async_request,
@@ -226,6 +232,8 @@ struct smb_version_operations smb21_operations = {
226 .tree_connect = SMB2_tcon, 232 .tree_connect = SMB2_tcon,
227 .tree_disconnect = SMB2_tdis, 233 .tree_disconnect = SMB2_tdis,
228 .is_path_accessible = smb2_is_path_accessible, 234 .is_path_accessible = smb2_is_path_accessible,
235 .can_echo = smb2_can_echo,
236 .echo = SMB2_echo,
229 .query_path_info = smb2_query_path_info, 237 .query_path_info = smb2_query_path_info,
230 .get_srv_inum = smb2_get_srv_inum, 238 .get_srv_inum = smb2_get_srv_inum,
231 .build_path_to_root = smb2_build_path_to_root, 239 .build_path_to_root = smb2_build_path_to_root,