Skip to content

Commit a9adafd

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb/client: add 4 NT error code definitions
From server/nterr.h that has been removed. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 9f99caa commit a9adafd

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

fs/smb/client/nterr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
const struct nt_err_code_struct nt_errs[] = {
1515
{"NT_STATUS_OK", NT_STATUS_OK},
16+
{"NT_STATUS_PENDING", NT_STATUS_PENDING},
1617
{"NT_STATUS_MEDIA_CHANGED", NT_STATUS_MEDIA_CHANGED},
1718
{"NT_STATUS_END_OF_MEDIA", NT_STATUS_END_OF_MEDIA},
1819
{"NT_STATUS_MEDIA_CHECK", NT_STATUS_MEDIA_CHECK},
@@ -544,6 +545,7 @@ const struct nt_err_code_struct nt_errs[] = {
544545
{"NT_STATUS_DOMAIN_TRUST_INCONSISTENT",
545546
NT_STATUS_DOMAIN_TRUST_INCONSISTENT},
546547
{"NT_STATUS_FS_DRIVER_REQUIRED", NT_STATUS_FS_DRIVER_REQUIRED},
548+
{"NT_STATUS_INVALID_LOCK_RANGE", NT_STATUS_INVALID_LOCK_RANGE},
547549
{"NT_STATUS_NO_USER_SESSION_KEY", NT_STATUS_NO_USER_SESSION_KEY},
548550
{"NT_STATUS_USER_SESSION_DELETED", NT_STATUS_USER_SESSION_DELETED},
549551
{"NT_STATUS_RESOURCE_LANG_NOT_FOUND",
@@ -675,9 +677,12 @@ const struct nt_err_code_struct nt_errs[] = {
675677
NT_STATUS_QUOTA_LIST_INCONSISTENT},
676678
{"NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE},
677679
{"NT_STATUS_NOT_A_REPARSE_POINT", NT_STATUS_NOT_A_REPARSE_POINT},
680+
{"NT_STATUS_NETWORK_SESSION_EXPIRED", NT_STATUS_NETWORK_SESSION_EXPIRED},
678681
{"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},
679682
{"NT_STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES},
680683
{"NT_STATUS_SOME_UNMAPPED", NT_STATUS_SOME_UNMAPPED},
681684
{"NT_STATUS_NO_SUCH_JOB", NT_STATUS_NO_SUCH_JOB},
685+
{"NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP",
686+
NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP},
682687
{NULL, 0}
683688
};

fs/smb/client/nterr.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extern const struct nt_err_code_struct nt_errs[];
3535
*/
3636

3737
#define NT_STATUS_OK 0x0000
38+
#define NT_STATUS_PENDING 0x0103
3839
#define NT_STATUS_SOME_UNMAPPED 0x0107
3940
#define NT_STATUS_BUFFER_OVERFLOW 0x80000005
4041
#define NT_STATUS_NO_MORE_ENTRIES 0x8000001a
@@ -451,6 +452,7 @@ extern const struct nt_err_code_struct nt_errs[];
451452
#define NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT 0xC0000000 | 0x019a
452453
#define NT_STATUS_DOMAIN_TRUST_INCONSISTENT 0xC0000000 | 0x019b
453454
#define NT_STATUS_FS_DRIVER_REQUIRED 0xC0000000 | 0x019c
455+
#define NT_STATUS_INVALID_LOCK_RANGE 0xC0000000 | 0x01a1
454456
#define NT_STATUS_NO_USER_SESSION_KEY 0xC0000000 | 0x0202
455457
#define NT_STATUS_USER_SESSION_DELETED 0xC0000000 | 0x0203
456458
#define NT_STATUS_RESOURCE_LANG_NOT_FOUND 0xC0000000 | 0x0204
@@ -547,6 +549,8 @@ extern const struct nt_err_code_struct nt_errs[];
547549
#define NT_STATUS_QUOTA_LIST_INCONSISTENT 0xC0000000 | 0x0266
548550
#define NT_STATUS_FILE_IS_OFFLINE 0xC0000000 | 0x0267
549551
#define NT_STATUS_NOT_A_REPARSE_POINT 0xC0000000 | 0x0275
552+
#define NT_STATUS_NETWORK_SESSION_EXPIRED 0xC0000000 | 0x035c
550553
#define NT_STATUS_NO_SUCH_JOB 0xC0000000 | 0xEDE /* scheduler */
554+
#define NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP 0xC0000000 | 0x5D0000
551555

552556
#endif /* _NTERR_H */

0 commit comments

Comments
 (0)