diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-06-20 09:50:01 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 11:25:10 -0400 |
commit | f7ec0d0bbc5cff9edd649e6891e7e2efcb94c038 (patch) | |
tree | ea751dfec328b01adf2c5c8d93df2a1ebe74230e /fs/cifs | |
parent | 6d5786a34d98bffb8ad50d8053d1e53231fe0636 (diff) |
CIFS: Rename 7 error codes to NT_ style
and consider such codes as CIFS errors.
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/nterr.c | 6 | ||||
-rw-r--r-- | fs/cifs/nterr.h | 22 |
2 files changed, 15 insertions, 13 deletions
diff --git a/fs/cifs/nterr.c b/fs/cifs/nterr.c index 819fd994b121..b6023c646123 100644 --- a/fs/cifs/nterr.c +++ b/fs/cifs/nterr.c | |||
@@ -31,7 +31,7 @@ const struct nt_err_code_struct nt_errs[] = { | |||
31 | {"NT_STATUS_INVALID_INFO_CLASS", NT_STATUS_INVALID_INFO_CLASS}, | 31 | {"NT_STATUS_INVALID_INFO_CLASS", NT_STATUS_INVALID_INFO_CLASS}, |
32 | {"NT_STATUS_INFO_LENGTH_MISMATCH", NT_STATUS_INFO_LENGTH_MISMATCH}, | 32 | {"NT_STATUS_INFO_LENGTH_MISMATCH", NT_STATUS_INFO_LENGTH_MISMATCH}, |
33 | {"NT_STATUS_ACCESS_VIOLATION", NT_STATUS_ACCESS_VIOLATION}, | 33 | {"NT_STATUS_ACCESS_VIOLATION", NT_STATUS_ACCESS_VIOLATION}, |
34 | {"STATUS_BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW}, | 34 | {"NT_STATUS_BUFFER_OVERFLOW", NT_STATUS_BUFFER_OVERFLOW}, |
35 | {"NT_STATUS_IN_PAGE_ERROR", NT_STATUS_IN_PAGE_ERROR}, | 35 | {"NT_STATUS_IN_PAGE_ERROR", NT_STATUS_IN_PAGE_ERROR}, |
36 | {"NT_STATUS_PAGEFILE_QUOTA", NT_STATUS_PAGEFILE_QUOTA}, | 36 | {"NT_STATUS_PAGEFILE_QUOTA", NT_STATUS_PAGEFILE_QUOTA}, |
37 | {"NT_STATUS_INVALID_HANDLE", NT_STATUS_INVALID_HANDLE}, | 37 | {"NT_STATUS_INVALID_HANDLE", NT_STATUS_INVALID_HANDLE}, |
@@ -681,7 +681,7 @@ const struct nt_err_code_struct nt_errs[] = { | |||
681 | NT_STATUS_QUOTA_LIST_INCONSISTENT}, | 681 | NT_STATUS_QUOTA_LIST_INCONSISTENT}, |
682 | {"NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE}, | 682 | {"NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE}, |
683 | {"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES}, | 683 | {"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES}, |
684 | {"STATUS_MORE_ENTRIES", STATUS_MORE_ENTRIES}, | 684 | {"NT_STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES}, |
685 | {"STATUS_SOME_UNMAPPED", STATUS_SOME_UNMAPPED}, | 685 | {"NT_STATUS_SOME_UNMAPPED", NT_STATUS_SOME_UNMAPPED}, |
686 | {NULL, 0} | 686 | {NULL, 0} |
687 | }; | 687 | }; |
diff --git a/fs/cifs/nterr.h b/fs/cifs/nterr.h index 257267367d41..7a0eae5ae7c9 100644 --- a/fs/cifs/nterr.h +++ b/fs/cifs/nterr.h | |||
@@ -35,18 +35,20 @@ struct nt_err_code_struct { | |||
35 | extern const struct nt_err_code_struct nt_errs[]; | 35 | extern const struct nt_err_code_struct nt_errs[]; |
36 | 36 | ||
37 | /* Win32 Status codes. */ | 37 | /* Win32 Status codes. */ |
38 | #define STATUS_MORE_ENTRIES 0x0105 | 38 | #define NT_STATUS_MORE_ENTRIES 0x0105 |
39 | #define ERROR_INVALID_PARAMETER 0x0057 | 39 | #define NT_ERROR_INVALID_PARAMETER 0x0057 |
40 | #define ERROR_INSUFFICIENT_BUFFER 0x007a | 40 | #define NT_ERROR_INSUFFICIENT_BUFFER 0x007a |
41 | #define STATUS_1804 0x070c | 41 | #define NT_STATUS_1804 0x070c |
42 | #define STATUS_NOTIFY_ENUM_DIR 0x010c | 42 | #define NT_STATUS_NOTIFY_ENUM_DIR 0x010c |
43 | 43 | ||
44 | /* Win32 Error codes extracted using a loop in smbclient then printing a | 44 | /* |
45 | netmon sniff to a file. */ | 45 | * Win32 Error codes extracted using a loop in smbclient then printing a netmon |
46 | * sniff to a file. | ||
47 | */ | ||
46 | 48 | ||
47 | #define NT_STATUS_OK 0x0000 | 49 | #define NT_STATUS_OK 0x0000 |
48 | #define STATUS_SOME_UNMAPPED 0x0107 | 50 | #define NT_STATUS_SOME_UNMAPPED 0x0107 |
49 | #define STATUS_BUFFER_OVERFLOW 0x80000005 | 51 | #define NT_STATUS_BUFFER_OVERFLOW 0x80000005 |
50 | #define NT_STATUS_NO_MORE_ENTRIES 0x8000001a | 52 | #define NT_STATUS_NO_MORE_ENTRIES 0x8000001a |
51 | #define NT_STATUS_MEDIA_CHANGED 0x8000001c | 53 | #define NT_STATUS_MEDIA_CHANGED 0x8000001c |
52 | #define NT_STATUS_END_OF_MEDIA 0x8000001e | 54 | #define NT_STATUS_END_OF_MEDIA 0x8000001e |