smb3: print warning once if posix context returned on open
[linux-2.6-microblaze.git] / fs / cifs / smb2pdu.h
index 7b1c379..ca2123d 100644 (file)
@@ -1282,6 +1282,8 @@ struct smb2_echo_rsp {
 #define SMB2_INDEX_SPECIFIED           0x04
 #define SMB2_REOPEN                    0x10
 
+#define SMB2_QUERY_DIRECTORY_IOV_SIZE 2
+
 struct smb2_query_directory_req {
        struct smb2_sync_hdr sync_hdr;
        __le16 StructureSize; /* Must be 33 */
@@ -1593,4 +1595,12 @@ struct smb2_file_network_open_info {
 
 extern char smb2_padding[7];
 
+/* equivalent of the contents of SMB3.1.1 POSIX open context response */
+struct smb_posix_info {
+       __le32 nlink;
+       __le32 reparse_tag;
+       __le32 mode;
+       kuid_t  uid;
+       kuid_t  gid;
+};
 #endif                         /* _SMB2PDU_H */