From: Jeff Layton <jlayton-vpEMnDpepFuMZCB2o+C8xQ@public.gmane.org>
To: Pavel Shilovsky <pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 02/24] CIFS: Rename 7 error codes to NT_ style
Date: Wed, 20 Jun 2012 18:00:28 -0700 [thread overview]
Message-ID: <20120620180028.052b33ac@corrin.poochiereds.net> (raw)
In-Reply-To: <1340202664-28696-3-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
On Wed, 20 Jun 2012 18:30:42 +0400
Pavel Shilovsky <pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote:
> and consider such codes as CIFS errors.
>
> Signed-off-by: Pavel Shilovsky <pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
> ---
> fs/cifs/nterr.c | 6 +++---
> fs/cifs/nterr.h | 26 ++++++++++++++------------
> 2 files changed, 17 insertions(+), 15 deletions(-)
>
> diff --git a/fs/cifs/nterr.c b/fs/cifs/nterr.c
> index 819fd99..908a3c7 100644
> --- a/fs/cifs/nterr.c
> +++ b/fs/cifs/nterr.c
> @@ -31,7 +31,7 @@ const struct nt_err_code_struct nt_errs[] = {
> {"NT_STATUS_INVALID_INFO_CLASS", NT_STATUS_INVALID_INFO_CLASS},
> {"NT_STATUS_INFO_LENGTH_MISMATCH", NT_STATUS_INFO_LENGTH_MISMATCH},
> {"NT_STATUS_ACCESS_VIOLATION", NT_STATUS_ACCESS_VIOLATION},
> - {"STATUS_BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW},
> + {"STATUS_BUFFER_OVERFLOW", NT_STATUS_BUFFER_OVERFLOW},
Should you also change the text version of these names? Since we print
those when debugging, then it might be nice to have them match the
actual #define names.
> {"NT_STATUS_IN_PAGE_ERROR", NT_STATUS_IN_PAGE_ERROR},
> {"NT_STATUS_PAGEFILE_QUOTA", NT_STATUS_PAGEFILE_QUOTA},
> {"NT_STATUS_INVALID_HANDLE", NT_STATUS_INVALID_HANDLE},
> @@ -681,7 +681,7 @@ 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_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},
> - {"STATUS_MORE_ENTRIES", STATUS_MORE_ENTRIES},
> - {"STATUS_SOME_UNMAPPED", STATUS_SOME_UNMAPPED},
> + {"STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES},
> + {"STATUS_SOME_UNMAPPED", NT_STATUS_SOME_UNMAPPED},
> {NULL, 0}
> };
> diff --git a/fs/cifs/nterr.h b/fs/cifs/nterr.h
> index 2572673..7a0eae5 100644
> --- a/fs/cifs/nterr.h
> +++ b/fs/cifs/nterr.h
> @@ -35,18 +35,20 @@ struct nt_err_code_struct {
> extern const struct nt_err_code_struct nt_errs[];
>
> /* Win32 Status codes. */
> -#define STATUS_MORE_ENTRIES 0x0105
> -#define ERROR_INVALID_PARAMETER 0x0057
> -#define ERROR_INSUFFICIENT_BUFFER 0x007a
> -#define STATUS_1804 0x070c
> -#define STATUS_NOTIFY_ENUM_DIR 0x010c
> +#define NT_STATUS_MORE_ENTRIES 0x0105
> +#define NT_ERROR_INVALID_PARAMETER 0x0057
> +#define NT_ERROR_INSUFFICIENT_BUFFER 0x007a
> +#define NT_STATUS_1804 0x070c
> +#define NT_STATUS_NOTIFY_ENUM_DIR 0x010c
>
> -/* Win32 Error codes extracted using a loop in smbclient then printing a
> - netmon sniff to a file. */
> +/*
> + * Win32 Error codes extracted using a loop in smbclient then printing a netmon
> + * sniff to a file.
> + */
>
> -#define NT_STATUS_OK 0x0000
> -#define STATUS_SOME_UNMAPPED 0x0107
> -#define STATUS_BUFFER_OVERFLOW 0x80000005
> +#define NT_STATUS_OK 0x0000
> +#define NT_STATUS_SOME_UNMAPPED 0x0107
> +#define NT_STATUS_BUFFER_OVERFLOW 0x80000005
> #define NT_STATUS_NO_MORE_ENTRIES 0x8000001a
> #define NT_STATUS_MEDIA_CHANGED 0x8000001c
> #define NT_STATUS_END_OF_MEDIA 0x8000001e
--
Jeff Layton <jlayton-vpEMnDpepFuMZCB2o+C8xQ@public.gmane.org>
next prev parent reply other threads:[~2012-06-21 1:00 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 14:30 [PATCH v2 00/24] Get SMB2 mount work Pavel Shilovsky
[not found] ` <1340202664-28696-1-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-20 14:30 ` [PATCH v2 01/24] CIFS: Rename Get/FreeXid and make them work with unsigned int Pavel Shilovsky
[not found] ` <1340202664-28696-2-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-21 0:58 ` Jeff Layton
2012-06-20 14:30 ` [PATCH v2 02/24] CIFS: Rename 7 error codes to NT_ style Pavel Shilovsky
[not found] ` <1340202664-28696-3-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-21 1:00 ` Jeff Layton [this message]
[not found] ` <20120620180028.052b33ac-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2012-06-21 7:54 ` Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 03/24] CIFS: Add SMB2 status codes Pavel Shilovsky
[not found] ` <1340202664-28696-4-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-21 2:35 ` Jeff Layton
2012-06-20 14:30 ` [PATCH v2 05/24] CIFS: Make transport routines work with SMB2 Pavel Shilovsky
[not found] ` <1340202664-28696-6-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-21 16:41 ` Jeff Layton
2012-06-20 14:30 ` [PATCH v2 06/24] CIFS: Add SMB2 credits support Pavel Shilovsky
[not found] ` <1340202664-28696-7-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-21 2:20 ` Jeff Layton
[not found] ` <20120620192038.26b486ec-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2012-06-21 7:43 ` Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 07/24] CIFS: Make demultiplex_thread work with SMB2 code Pavel Shilovsky
[not found] ` <1340202664-28696-8-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-06-21 18:44 ` Jeff Layton
[not found] ` <20120621114437.72a9483d-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2012-06-22 14:59 ` Pavel Shilovsky
[not found] ` <CAKywueRCTr8bva4tX42JHH=j88i3t5+E0GNrVbKwhwp9hJScPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-06-22 21:55 ` Steve French
[not found] ` <CAH2r5mv+_BXmc9rm59shjBoNmcfhUHidDAbmhrrPi6Na+-p6WQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-06-23 2:10 ` Jeff Layton
2012-06-20 14:30 ` [PATCH v2 08/24] CIFS: Respect SMB2 header/max header size Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 09/24] CIFS: Add capability to send SMB2 negotiate message Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 10/24] CIFS: Add session setup/logoff capability for SMB2 Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 11/24] CIFS: Add tree connect/disconnect " Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 12/24] CIFS: Process reconnects for SMB2 shares Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 13/24] CIFS: Move getting dfs referalls to ops struct Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 14/24] CIFS: Move informational tcon calls " Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 15/24] CIFS: Move is_path_accessible " Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 16/24] CIFS: Add SMB2 support for is_path_accessible Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 17/24] CIFS: Move query inode info code to ops struct Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 18/24] CIFS: Query SMB2 inode info Pavel Shilovsky
2012-06-20 14:30 ` [PATCH v2 19/24] CIFS: Move building path to root to ops struct Pavel Shilovsky
2012-06-20 14:31 ` [PATCH v2 20/24] CIFS: Add SMB2 support for build_path_to_root Pavel Shilovsky
2012-06-20 14:31 ` [PATCH v2 21/24] CIFS: Move echo code to osp struct Pavel Shilovsky
2012-06-20 14:31 ` [PATCH v2 22/24] CIFS: Add echo request support for SMB2 Pavel Shilovsky
2012-06-20 14:31 ` [PATCH v2 23/24] CIFS: Move clear/print_stats code to ops struct Pavel Shilovsky
2012-06-20 14:31 ` [PATCH v2 24/24] CIFS: Allow SMB2 statistics to be tracked Pavel Shilovsky
2012-06-20 14:37 ` [PATCH v2 00/24] Get SMB2 mount work Pavel Shilovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120620180028.052b33ac@corrin.poochiereds.net \
--to=jlayton-vpemndpepfumzcb2o+c8xq@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox