From: Huiwen He Date: Wed, 21 Jan 2026 11:48:59 +0000 (+0800) Subject: smb/client: add NT_STATUS_VARIABLE_NOT_FOUND X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29aaf48e24b768fa3b3c400391ee113078206e6f;p=thirdparty%2Flinux.git smb/client: add NT_STATUS_VARIABLE_NOT_FOUND See MS-ERREf 2.3.1 STATUS_VARIABLE_NOT_FOUND. Signed-off-by: Huiwen He Signed-off-by: ChenXiaoSong Signed-off-by: Steve French --- diff --git a/fs/smb/client/nterr.c b/fs/smb/client/nterr.c index 7f29fd5a482d..6f30bd5dcf61 100644 --- a/fs/smb/client/nterr.c +++ b/fs/smb/client/nterr.c @@ -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}, diff --git a/fs/smb/client/nterr.h b/fs/smb/client/nterr.h index be74410da6d5..e7d431d43b76 100644 --- a/fs/smb/client/nterr.h +++ b/fs/smb/client/nterr.h @@ -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) diff --git a/fs/smb/client/smb1maperror.c b/fs/smb/client/smb1maperror.c index 0735f7ed676d..2f81c4adef81 100644 --- a/fs/smb/client/smb1maperror.c +++ b/fs/smb/client/smb1maperror.c @@ -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}, {