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

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 77f8476..7f29fd5 100644 (file)
@@ -684,5 +684,6 @@ const struct nt_err_code_struct nt_errs[] = {
        {"NT_STATUS_NO_SUCH_JOB", NT_STATUS_NO_SUCH_JOB},
        {"NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP",
         NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP},
+       {"NT_STATUS_OS2_INVALID_LEVEL", NT_STATUS_OS2_INVALID_LEVEL},
        {NULL, 0}
 };
index 81f1a78..be74410 100644 (file)
@@ -552,5 +552,6 @@ extern const struct nt_err_code_struct nt_errs[];
 #define NT_STATUS_NETWORK_SESSION_EXPIRED  (0xC0000000 | 0x035c)
 #define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE)     /* scheduler */
 #define NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP (0xC0000000 | 0x5D0000)
+#define NT_STATUS_OS2_INVALID_LEVEL 0x007c0001
 
 #endif                         /* _NTERR_H */
index 31b9073..6347b2b 100644 (file)
@@ -669,7 +669,7 @@ static const struct {
        ERRDOS, ERRnoaccess, 0xc0000290}, {
        ERRDOS, ERRbadfunc, 0xc000029c}, {
        ERRDOS, ERRsymlink, NT_STATUS_STOPPED_ON_SYMLINK}, {
-       ERRDOS, ERRinvlevel, 0x007c0001}, {
+       ERRDOS, ERRinvlevel, NT_STATUS_OS2_INVALID_LEVEL}, {
        0, 0, 0 }
 };