diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2024-01-17 09:21:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-25 17:22:45 +0300 |
commit | 6789c8387676a35a2d1c3860b22d478795f32d03 (patch) | |
tree | 5c4b93fda74251a05aa259163f5d32cdde33cd73 /fs/smb/client/smb2status.h | |
parent | b96ea433fff45fd2265c3536cef57ad62451299b (diff) | |
download | linux-6789c8387676a35a2d1c3860b22d478795f32d03.tar.xz |
cifs: new nt status codes from MS-SMB2
[ Upstream commit 7f738527a7a03021c7e1b02e188f446845f05eb6 ]
MS-SMB2 spec has introduced two new status codes,
STATUS_SERVER_UNAVAILABLE and STATUS_FILE_NOT_AVAILABLE
which are to be treated as retryable errors.
This change adds these to the available mappings and
maps them to Linux errno EAGAIN.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/smb/client/smb2status.h')
-rw-r--r-- | fs/smb/client/smb2status.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/smb2status.h b/fs/smb/client/smb2status.h index a9e958166fc5..9c6d79b0bd49 100644 --- a/fs/smb/client/smb2status.h +++ b/fs/smb/client/smb2status.h @@ -982,6 +982,8 @@ struct ntstatus { #define STATUS_INVALID_TASK_INDEX cpu_to_le32(0xC0000501) #define STATUS_THREAD_ALREADY_IN_TASK cpu_to_le32(0xC0000502) #define STATUS_CALLBACK_BYPASS cpu_to_le32(0xC0000503) +#define STATUS_SERVER_UNAVAILABLE cpu_to_le32(0xC0000466) +#define STATUS_FILE_NOT_AVAILABLE cpu_to_le32(0xC0000467) #define STATUS_PORT_CLOSED cpu_to_le32(0xC0000700) #define STATUS_MESSAGE_LOST cpu_to_le32(0xC0000701) #define STATUS_INVALID_MESSAGE cpu_to_le32(0xC0000702) |