Re: [PATCH 14/25] xfs: verify dir2 block format buffers

Phil White
2012-10-30T17:56:13Z

On Thu, Oct 25, 2012 at 05:34:03PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Add a dir2 block format read verifier. To fully verify every block
> when read, call xfs_dir2_data_check() on them. Change
> xfs_dir2_data_check() to do runtime checking, convert ASSERT()
> checks to XFS_WANT_CORRUPTED_RETURN(), which will trigger an ASSERT
> failure on debug kernels, but on production kernels will dump an
> error to dmesg and return EFSCORRUPTED to the caller.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Solid.

Reviewed-by: Phil White <pwhite@sgi.com>