diff options
| author | ChenXiaoSong <chenxiaosong@kylinos.cn> | 2025-12-08 09:29:56 +0800 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-12-09 21:21:42 -0600 |
| commit | a9adafd40165a9f3ecf4085274ed1a87fd2d1fde (patch) | |
| tree | 803fe7723e2f6144e843ef4c36ab5e8fbd169bfb | |
| parent | 9f99caa8950a76f560a90074e3a4b93cfa8b3d84 (diff) | |
| download | tip-a9adafd40165a9f3ecf4085274ed1a87fd2d1fde.tar.gz | |
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>
| -rw-r--r-- | fs/smb/client/nterr.c | 5 | ||||
| -rw-r--r-- | fs/smb/client/nterr.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/fs/smb/client/nterr.c b/fs/smb/client/nterr.c index 8f0bc441295eff..77f84767b7dfb0 100644 --- a/fs/smb/client/nterr.c +++ b/fs/smb/client/nterr.c @@ -13,6 +13,7 @@ const struct nt_err_code_struct nt_errs[] = { {"NT_STATUS_OK", NT_STATUS_OK}, + {"NT_STATUS_PENDING", NT_STATUS_PENDING}, {"NT_STATUS_MEDIA_CHANGED", NT_STATUS_MEDIA_CHANGED}, {"NT_STATUS_END_OF_MEDIA", NT_STATUS_END_OF_MEDIA}, {"NT_STATUS_MEDIA_CHECK", NT_STATUS_MEDIA_CHECK}, @@ -544,6 +545,7 @@ const struct nt_err_code_struct nt_errs[] = { {"NT_STATUS_DOMAIN_TRUST_INCONSISTENT", NT_STATUS_DOMAIN_TRUST_INCONSISTENT}, {"NT_STATUS_FS_DRIVER_REQUIRED", NT_STATUS_FS_DRIVER_REQUIRED}, + {"NT_STATUS_INVALID_LOCK_RANGE", NT_STATUS_INVALID_LOCK_RANGE}, {"NT_STATUS_NO_USER_SESSION_KEY", NT_STATUS_NO_USER_SESSION_KEY}, {"NT_STATUS_USER_SESSION_DELETED", NT_STATUS_USER_SESSION_DELETED}, {"NT_STATUS_RESOURCE_LANG_NOT_FOUND", @@ -675,9 +677,12 @@ const struct nt_err_code_struct nt_errs[] = { NT_STATUS_QUOTA_LIST_INCONSISTENT}, {"NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE}, {"NT_STATUS_NOT_A_REPARSE_POINT", NT_STATUS_NOT_A_REPARSE_POINT}, + {"NT_STATUS_NETWORK_SESSION_EXPIRED", NT_STATUS_NETWORK_SESSION_EXPIRED}, {"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES}, {"NT_STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES}, {"NT_STATUS_SOME_UNMAPPED", NT_STATUS_SOME_UNMAPPED}, {"NT_STATUS_NO_SUCH_JOB", NT_STATUS_NO_SUCH_JOB}, + {"NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP", + NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP}, {NULL, 0} }; diff --git a/fs/smb/client/nterr.h b/fs/smb/client/nterr.h index 09263c91d07a48..4bc20c7bfe721e 100644 --- a/fs/smb/client/nterr.h +++ b/fs/smb/client/nterr.h @@ -35,6 +35,7 @@ extern const struct nt_err_code_struct nt_errs[]; */ #define NT_STATUS_OK 0x0000 +#define NT_STATUS_PENDING 0x0103 #define NT_STATUS_SOME_UNMAPPED 0x0107 #define NT_STATUS_BUFFER_OVERFLOW 0x80000005 #define NT_STATUS_NO_MORE_ENTRIES 0x8000001a @@ -451,6 +452,7 @@ extern const struct nt_err_code_struct nt_errs[]; #define NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT 0xC0000000 | 0x019a #define NT_STATUS_DOMAIN_TRUST_INCONSISTENT 0xC0000000 | 0x019b #define NT_STATUS_FS_DRIVER_REQUIRED 0xC0000000 | 0x019c +#define NT_STATUS_INVALID_LOCK_RANGE 0xC0000000 | 0x01a1 #define NT_STATUS_NO_USER_SESSION_KEY 0xC0000000 | 0x0202 #define NT_STATUS_USER_SESSION_DELETED 0xC0000000 | 0x0203 #define NT_STATUS_RESOURCE_LANG_NOT_FOUND 0xC0000000 | 0x0204 @@ -547,6 +549,8 @@ extern const struct nt_err_code_struct nt_errs[]; #define NT_STATUS_QUOTA_LIST_INCONSISTENT 0xC0000000 | 0x0266 #define NT_STATUS_FILE_IS_OFFLINE 0xC0000000 | 0x0267 #define NT_STATUS_NOT_A_REPARSE_POINT 0xC0000000 | 0x0275 +#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 #endif /* _NTERR_H */ |
