aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2misc.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2011-12-29 08:06:33 -0500
committerPavel Shilovsky <pshilovsky@samba.org>2012-07-24 13:55:08 -0400
commitbe4cb9e3d4ef7af1aaf66cebab1391ff91b48beb (patch)
treed6cd1bc8f7ff8053c5917043b24e69c07f46594b /fs/cifs/smb2misc.c
parent1208ef1f76540b621f80e6130c4fb7bed8ece360 (diff)
CIFS: Query SMB2 inode info
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2misc.c')
-rw-r--r--fs/cifs/smb2misc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c
index eb73a136641c..a4ff5d547554 100644
--- a/fs/cifs/smb2misc.c
+++ b/fs/cifs/smb2misc.c
@@ -235,8 +235,13 @@ smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *hdr)
235 *len = le32_to_cpu( 235 *len = le32_to_cpu(
236 ((struct smb2_create_rsp *)hdr)->CreateContextsLength); 236 ((struct smb2_create_rsp *)hdr)->CreateContextsLength);
237 break; 237 break;
238 case SMB2_READ:
239 case SMB2_QUERY_INFO: 238 case SMB2_QUERY_INFO:
239 *off = le16_to_cpu(
240 ((struct smb2_query_info_rsp *)hdr)->OutputBufferOffset);
241 *len = le32_to_cpu(
242 ((struct smb2_query_info_rsp *)hdr)->OutputBufferLength);
243 break;
244 case SMB2_READ:
240 case SMB2_QUERY_DIRECTORY: 245 case SMB2_QUERY_DIRECTORY:
241 case SMB2_IOCTL: 246 case SMB2_IOCTL:
242 case SMB2_CHANGE_NOTIFY: 247 case SMB2_CHANGE_NOTIFY: