]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
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 77f84767b7dfb0e632de3e965b0abda0e322e80f..7f29fd5a482dd7248e6b3e56403e72a4cdf70d8e 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 81f1a78cf41faa3f518fc8278697adf33ab3d6f8..be74410da6d5052bb8e2ac26535ddcdb1ddb1cc2 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 31b9073629891e9ef33cdf0ac3ee0f59fbc54dff..6347b2b856e52ea08bd39bee6f488c1a319d636f 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 }
 };