| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 02/21] xfs: increase hexdump output in xfs_corruption_error |
| From: | Ben Myers <bpm@xxxxxxx> |
| Date: | Thu, 14 Mar 2013 16:18:17 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1363091454-8852-3-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1363091454-8852-1-git-send-email-david@xxxxxxxxxxxxx> <1363091454-8852-3-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-06-14) |
On Tue, Mar 12, 2013 at 11:30:35PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@xxxxxxxxxx>
>
> Currently xfs_corruption_error() dumps the first 16 bytes of the
> buffer that is passed to it when a corruption occurs. This is not
> large enough to see the entire state of the header of the block that
> was determined to be corrupt. increase the output to 64 bytes to
> capture the majority of all headers in all types of metadata blocks.
>
> Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
> ---
> fs/xfs/xfs_error.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c
> index 07bf3b9..35d3f5b 100644
> --- a/fs/xfs/xfs_error.c
> +++ b/fs/xfs/xfs_error.c
> @@ -178,7 +178,7 @@ xfs_corruption_error(
> inst_t *ra)
> {
> if (level <= xfs_error_level)
> - xfs_hex_dump(p, 16);
> + xfs_hex_dump(p, 64);
Are you sure we don't have any structures which are shorter than that? I guess
we'll have to take a look.
-Ben
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] xfs: Fix WARN_ON(delalloc) in xfs_vm_releasepage(), Carlos Maiolino |
|---|---|
| Next by Date: | [XFS updates] XFS development tree branch, master, updated. v3.9-rc1-9-g56cea2d, xfs |
| Previous by Thread: | [PATCH 02/21] xfs: increase hexdump output in xfs_corruption_error, Dave Chinner |
| Next by Thread: | Re: [PATCH 02/21] xfs: increase hexdump output in xfs_corruption_error, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |