diff options
author | Steve French <sfrench@us.ibm.com> | 2005-08-23 23:26:03 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-08-23 23:26:03 -0400 |
commit | 6b8edfe0f918e7585acb3bd63f62ff56e32dd3d2 (patch) | |
tree | ea9c6c9c85b0653aeac1abad87ad160114de28af /fs/cifs/cifspdu.h | |
parent | a10faeb2a3e266385cc334fe9af76e08e5e4330f (diff) |
[CIFS] Support for mounting to older servers part 2. Add support for
legacy getattr (lookup).
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r-- | fs/cifs/cifspdu.h | 17 |
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 | ||
889 | typedef 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 | |||
896 | typedef 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 | |||
888 | typedef struct smb_com_setattr_req { | 905 | typedef 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; |