smb/client: add NT_STATUS_VARIABLE_NOT_FOUND
authorHuiwen He <hehuiwen@kylinos.cn>
Wed, 21 Jan 2026 11:48:59 +0000 (19:48 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 03:24:41 +0000 (21:24 -0600)
See MS-ERREf 2.3.1 STATUS_VARIABLE_NOT_FOUND.

Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
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 7f29fd5..6f30bd5 100644 (file)
@@ -346,6 +346,7 @@ const struct nt_err_code_struct nt_errs[] = {
        {"NT_STATUS_STACK_OVERFLOW", NT_STATUS_STACK_OVERFLOW},
        {"NT_STATUS_NO_SUCH_PACKAGE", NT_STATUS_NO_SUCH_PACKAGE},
        {"NT_STATUS_BAD_FUNCTION_TABLE", NT_STATUS_BAD_FUNCTION_TABLE},
+       {"NT_STATUS_VARIABLE_NOT_FOUND", NT_STATUS_VARIABLE_NOT_FOUND},
        {"NT_STATUS_DIRECTORY_NOT_EMPTY", NT_STATUS_DIRECTORY_NOT_EMPTY},
        {"NT_STATUS_FILE_CORRUPT_ERROR", NT_STATUS_FILE_CORRUPT_ERROR},
        {"NT_STATUS_NOT_A_DIRECTORY", NT_STATUS_NOT_A_DIRECTORY},
index be74410..e7d431d 100644 (file)
@@ -301,6 +301,7 @@ extern const struct nt_err_code_struct nt_errs[];
 #define NT_STATUS_STACK_OVERFLOW (0xC0000000 | 0x00fd)
 #define NT_STATUS_NO_SUCH_PACKAGE (0xC0000000 | 0x00fe)
 #define NT_STATUS_BAD_FUNCTION_TABLE (0xC0000000 | 0x00ff)
+#define NT_STATUS_VARIABLE_NOT_FOUND (0xC0000000 | 0x0100)
 #define NT_STATUS_DIRECTORY_NOT_EMPTY (0xC0000000 | 0x0101)
 #define NT_STATUS_FILE_CORRUPT_ERROR (0xC0000000 | 0x0102)
 #define NT_STATUS_NOT_A_DIRECTORY (0xC0000000 | 0x0103)
index 0735f7e..2f81c4a 100644 (file)
@@ -391,7 +391,7 @@ static const struct {
        ERRHRD, ERRgeneral, NT_STATUS_STACK_OVERFLOW}, {
        ERRHRD, ERRgeneral, NT_STATUS_NO_SUCH_PACKAGE}, {
        ERRHRD, ERRgeneral, NT_STATUS_BAD_FUNCTION_TABLE}, {
-       ERRDOS, 203, 0xc0000100}, {
+       ERRDOS, 203, NT_STATUS_VARIABLE_NOT_FOUND}, {
        ERRDOS, 145, NT_STATUS_DIRECTORY_NOT_EMPTY}, {
        ERRHRD, ERRgeneral, NT_STATUS_FILE_CORRUPT_ERROR}, {
        ERRDOS, 267, NT_STATUS_NOT_A_DIRECTORY}, {