From: Dave Chinner Date: Wed, 3 Apr 2013 05:11:11 +0000 (+1100) Subject: xfs: increase hexdump output in xfs_corruption_error X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a2050646f655a90400cbb66c3866d2e0137eee0c;p=openwrt%2Fstaging%2Fblogic.git xfs: increase hexdump output in xfs_corruption_error 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 Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index 07bf3b9815f5..35d3f5b041dd 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); xfs_error_report(tag, level, mp, filename, linenum, ra); xfs_alert(mp, "Corruption detected. Unmount and run xfs_repair"); }