Skip to content

Commit 014fdae

Browse files
palismfrench
authored andcommitted
cifs: Add missing NT_STATUS_* codes from nterr.h to nterr.c
This allows cifs_print_status() to show string representation also for these error codes. Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 4e2ee32 commit 014fdae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fs/smb/client/nterr.c

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

1414
const struct nt_err_code_struct nt_errs[] = {
1515
{"NT_STATUS_OK", NT_STATUS_OK},
16+
{"NT_STATUS_MEDIA_CHANGED", NT_STATUS_MEDIA_CHANGED},
17+
{"NT_STATUS_END_OF_MEDIA", NT_STATUS_END_OF_MEDIA},
18+
{"NT_STATUS_MEDIA_CHECK", NT_STATUS_MEDIA_CHECK},
19+
{"NT_STATUS_NO_DATA_DETECTED", NT_STATUS_NO_DATA_DETECTED},
20+
{"NT_STATUS_STOPPED_ON_SYMLINK", NT_STATUS_STOPPED_ON_SYMLINK},
21+
{"NT_STATUS_DEVICE_REQUIRES_CLEANING", NT_STATUS_DEVICE_REQUIRES_CLEANING},
22+
{"NT_STATUS_DEVICE_DOOR_OPEN", NT_STATUS_DEVICE_DOOR_OPEN},
1623
{"NT_STATUS_UNSUCCESSFUL", NT_STATUS_UNSUCCESSFUL},
1724
{"NT_STATUS_NOT_IMPLEMENTED", NT_STATUS_NOT_IMPLEMENTED},
1825
{"NT_STATUS_INVALID_INFO_CLASS", NT_STATUS_INVALID_INFO_CLASS},
@@ -670,5 +677,6 @@ const struct nt_err_code_struct nt_errs[] = {
670677
{"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},
671678
{"NT_STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES},
672679
{"NT_STATUS_SOME_UNMAPPED", NT_STATUS_SOME_UNMAPPED},
680+
{"NT_STATUS_NO_SUCH_JOB", NT_STATUS_NO_SUCH_JOB},
673681
{NULL, 0}
674682
};

0 commit comments

Comments
 (0)