Skip to content

Commit cd55c6e

Browse files
haryvensmfrench
authored andcommitted
smb/client: add NT_STATUS_OS2_INVALID_LEVEL
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>
1 parent b0a2291 commit cd55c6e

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

fs/smb/client/nterr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,5 +684,6 @@ const struct nt_err_code_struct nt_errs[] = {
684684
{"NT_STATUS_NO_SUCH_JOB", NT_STATUS_NO_SUCH_JOB},
685685
{"NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP",
686686
NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP},
687+
{"NT_STATUS_OS2_INVALID_LEVEL", NT_STATUS_OS2_INVALID_LEVEL},
687688
{NULL, 0}
688689
};

fs/smb/client/nterr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,5 +552,6 @@ extern const struct nt_err_code_struct nt_errs[];
552552
#define NT_STATUS_NETWORK_SESSION_EXPIRED (0xC0000000 | 0x035c)
553553
#define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE) /* scheduler */
554554
#define NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP (0xC0000000 | 0x5D0000)
555+
#define NT_STATUS_OS2_INVALID_LEVEL 0x007c0001
555556

556557
#endif /* _NTERR_H */

fs/smb/client/smb1maperror.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static const struct {
669669
ERRDOS, ERRnoaccess, 0xc0000290}, {
670670
ERRDOS, ERRbadfunc, 0xc000029c}, {
671671
ERRDOS, ERRsymlink, NT_STATUS_STOPPED_ON_SYMLINK}, {
672-
ERRDOS, ERRinvlevel, 0x007c0001}, {
672+
ERRDOS, ERRinvlevel, NT_STATUS_OS2_INVALID_LEVEL}, {
673673
0, 0, 0 }
674674
};
675675

0 commit comments

Comments
 (0)