diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:33 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:30 -0400 |
commit | d324f08d6a87149597817f4496ef0f7ac185e8da (patch) | |
tree | 03a02fcacdfe0ce8f2d91eb0cc3b108f02d0ba25 /fs/cifs/smb2pdu.h | |
parent | 92fc65a74a2be1388d774f7dbf82c9adea1745cf (diff) |
CIFS: Add readdir support for SMB2
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index d775941f552a..e6ddd1f79706 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -538,6 +538,34 @@ struct smb2_echo_rsp { | |||
538 | __u16 Reserved; | 538 | __u16 Reserved; |
539 | } __packed; | 539 | } __packed; |
540 | 540 | ||
541 | /* search (query_directory) Flags field */ | ||
542 | #define SMB2_RESTART_SCANS 0x01 | ||
543 | #define SMB2_RETURN_SINGLE_ENTRY 0x02 | ||
544 | #define SMB2_INDEX_SPECIFIED 0x04 | ||
545 | #define SMB2_REOPEN 0x10 | ||
546 | |||
547 | struct smb2_query_directory_req { | ||
548 | struct smb2_hdr hdr; | ||
549 | __le16 StructureSize; /* Must be 33 */ | ||
550 | __u8 FileInformationClass; | ||
551 | __u8 Flags; | ||
552 | __le32 FileIndex; | ||
553 | __u64 PersistentFileId; /* opaque endianness */ | ||
554 | __u64 VolatileFileId; /* opaque endianness */ | ||
555 | __le16 FileNameOffset; | ||
556 | __le16 FileNameLength; | ||
557 | __le32 OutputBufferLength; | ||
558 | __u8 Buffer[1]; | ||
559 | } __packed; | ||
560 | |||
561 | struct smb2_query_directory_rsp { | ||
562 | struct smb2_hdr hdr; | ||
563 | __le16 StructureSize; /* Must be 9 */ | ||
564 | __le16 OutputBufferOffset; | ||
565 | __le32 OutputBufferLength; | ||
566 | __u8 Buffer[1]; | ||
567 | } __packed; | ||
568 | |||
541 | /* Possible InfoType values */ | 569 | /* Possible InfoType values */ |
542 | #define SMB2_O_INFO_FILE 0x01 | 570 | #define SMB2_O_INFO_FILE 0x01 |
543 | #define SMB2_O_INFO_FILESYSTEM 0x02 | 571 | #define SMB2_O_INFO_FILESYSTEM 0x02 |