]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
SMB3.1.1: add missing QUERY_DIR info levels
authorSteve French <stfrench@microsoft.com>
Tue, 12 May 2026 02:55:23 +0000 (21:55 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 12 May 2026 15:13:24 +0000 (10:13 -0500)
New Infolevels for QUERY_DIR (and QUERY_INFO) levels 78 through 81 are
now being used by Windows clients and were added to the documentation.
Add defines for them (and correct some typos in documentation).  See
MS-SMB2 2.2.33 and MS-FSCC 2.4

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/fscc.h
fs/smb/common/smb2pdu.h

index b4ccddca925656b19e949118d109fe904330bd26..bc3012cc295da69badcd9ea8846323b97e808fd7 100644 (file)
@@ -260,12 +260,12 @@ typedef struct {
        char FileName[];
 } __packed FILE_DIRECTORY_INFO;   /* level 0x101 FF resp data */
 
-/* See MS-FSCC 2.4.13 */
+/* See MS-FSCC 2.4.14 */
 struct smb2_file_eof_info { /* encoding of request for level 10 */
        __le64 EndOfFile; /* new end of file value */
 } __packed; /* level 20 Set */
 
-/* See MS-FSCC 2.4.14 */
+/* See MS-FSCC 2.4.15 */
 typedef struct {
        __le32 NextEntryOffset;
        __u32 FileIndex;
index a4b12eb8df81ec7ab4e01462afdef5a2c140c36d..aeb0a245c5324e78e8a6d0e89d85583622d3e6ea 100644 (file)
@@ -1566,6 +1566,10 @@ struct validate_negotiate_info_rsp {
 #define FILE_STANDARD_LINK_INFORMATION 54
 #define FILE_ID_INFORMATION            59
 #define FILE_ID_EXTD_DIRECTORY_INFORMATION 60  /* also for QUERY_DIR */
+#define FileId64ExtdDirectoryInformation 78    /* also for QUERY_DIR */
+#define FileId64ExtdBothDirectoryInformation 79 /* also for QUERY_DIR */
+#define FileIdAllExtdDirectoryInformation 80   /* also for QUERY_DIR */
+#define FileIdAllExtdBothDirectoryInformation 81 /* also for QUERY_DIR */
 /* Used for Query Info and Find File POSIX Info for SMB3.1.1 and SMB1 */
 #define SMB_FIND_FILE_POSIX_INFO       0x064