smb/client: map NT_STATUS_NOTIFY_ENUM_DIR
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Thu, 22 Jan 2026 05:23:56 +0000 (13:23 +0800)
committerSteve French <stfrench@microsoft.com>
Thu, 12 Feb 2026 20:22:29 +0000 (14:22 -0600)
See MS-CIFS 2.2.2.4 STATUS_NOTIFY_ENUM_DIR.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/nterr.c
fs/smb/client/nterr.h
fs/smb/client/smb1maperror.c

index ab5a211..806ad6d 100644 (file)
@@ -14,6 +14,7 @@
 const struct nt_err_code_struct nt_errs[] = {
        {"NT_STATUS_OK", NT_STATUS_OK},
        {"NT_STATUS_PENDING", NT_STATUS_PENDING},
+       {"NT_STATUS_NOTIFY_ENUM_DIR", NT_STATUS_NOTIFY_ENUM_DIR},
        {"NT_STATUS_MEDIA_CHANGED", NT_STATUS_MEDIA_CHANGED},
        {"NT_STATUS_END_OF_MEDIA", NT_STATUS_END_OF_MEDIA},
        {"NT_STATUS_MEDIA_CHECK", NT_STATUS_MEDIA_CHECK},
index b04cd0d..e830670 100644 (file)
@@ -27,7 +27,6 @@ extern const struct nt_err_code_struct nt_errs[];
 #define NT_ERROR_INVALID_PARAMETER     0x0057
 #define NT_ERROR_INSUFFICIENT_BUFFER   0x007a
 #define NT_STATUS_1804                 0x070c
-#define NT_STATUS_NOTIFY_ENUM_DIR      0x010c
 
 /*
  * Win32 Error codes extracted using a loop in smbclient then printing a netmon
@@ -37,6 +36,7 @@ extern const struct nt_err_code_struct nt_errs[];
 #define NT_STATUS_OK                   0x0000
 #define NT_STATUS_PENDING              0x0103
 #define NT_STATUS_SOME_UNMAPPED        0x0107
+#define NT_STATUS_NOTIFY_ENUM_DIR      0x010c
 #define NT_STATUS_BUFFER_OVERFLOW  0x80000005
 #define NT_STATUS_NO_MORE_ENTRIES  0x8000001a
 #define NT_STATUS_MEDIA_CHANGED    0x8000001c
index 277ef08..ae13367 100644 (file)
@@ -112,6 +112,7 @@ static const struct {
        __u32 ntstatus;
 } ntstatus_to_dos_map[] = {
        {
+       ERRSRV, ERR_NOTIFY_ENUM_DIR, NT_STATUS_NOTIFY_ENUM_DIR}, {
        ERRDOS, ERRgeneral, NT_STATUS_UNSUCCESSFUL}, {
        ERRDOS, ERRbadfunc, NT_STATUS_NOT_IMPLEMENTED}, {
        ERRDOS, ERRbadpipe, NT_STATUS_INVALID_INFO_CLASS}, {