aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index 49cc66825309..42c16cf32284 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -36,6 +36,7 @@
36#define SMB_COM_CLOSE 0x04 /* triv req/rsp, timestamp ignored */ 36#define SMB_COM_CLOSE 0x04 /* triv req/rsp, timestamp ignored */
37#define SMB_COM_DELETE 0x06 /* trivial response */ 37#define SMB_COM_DELETE 0x06 /* trivial response */
38#define SMB_COM_RENAME 0x07 /* trivial response */ 38#define SMB_COM_RENAME 0x07 /* trivial response */
39#define SMB_COM_QUERY_INFORMATION 0x08 /* aka getattr */
39#define SMB_COM_SETATTR 0x09 /* trivial response */ 40#define SMB_COM_SETATTR 0x09 /* trivial response */
40#define SMB_COM_LOCKING_ANDX 0x24 /* trivial response */ 41#define SMB_COM_LOCKING_ANDX 0x24 /* trivial response */
41#define SMB_COM_COPY 0x29 /* trivial rsp, fail filename ignrd*/ 42#define SMB_COM_COPY 0x29 /* trivial rsp, fail filename ignrd*/
@@ -885,6 +886,22 @@ typedef struct smb_com_create_directory_rsp {
885 __u16 ByteCount; /* bct = 0 */ 886 __u16 ByteCount; /* bct = 0 */
886} CREATE_DIRECTORY_RSP; 887} CREATE_DIRECTORY_RSP;
887 888
889typedef struct smb_com_query_information_req {
890 struct smb_hdr hdr; /* wct = 0 */
891 __le16 ByteCount; /* 1 + namelen + 1 */
892 __u8 BufferFormat; /* 4 = ASCII */
893 unsigned char FileName[1];
894} QUERY_INFORMATION_REQ;
895
896typedef struct smb_com_query_information_rsp {
897 struct smb_hdr hdr; /* wct = 10 */
898 __le16 attr;
899 __le32 last_write_time;
900 __le32 size;
901 __u16 reserved[5];
902 __le16 ByteCount; /* bcc = 0 */
903} QUERY_INFORMATION_RSP;
904
888typedef struct smb_com_setattr_req { 905typedef struct smb_com_setattr_req {
889 struct smb_hdr hdr; /* wct = 8 */ 906 struct smb_hdr hdr; /* wct = 8 */
890 __le16 attr; 907 __le16 attr;