aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_error.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-04-03 01:11:11 -0400
committerBen Myers <bpm@sgi.com>2013-04-21 15:48:41 -0400
commita2050646f655a90400cbb66c3866d2e0137eee0c (patch)
tree9e40fe2d262394fec7ad390b7ac8a50605ce550c /fs/xfs/xfs_error.c
parent7fe3258c50de383037102129c57df5cb66ab2000 (diff)
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 <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r--fs/xfs/xfs_error.c2
1 files changed, 1 insertions, 1 deletions
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(
178 inst_t *ra) 178 inst_t *ra)
179{ 179{
180 if (level <= xfs_error_level) 180 if (level <= xfs_error_level)
181 xfs_hex_dump(p, 16); 181 xfs_hex_dump(p, 64);
182 xfs_error_report(tag, level, mp, filename, linenum, ra); 182 xfs_error_report(tag, level, mp, filename, linenum, ra);
183 xfs_alert(mp, "Corruption detected. Unmount and run xfs_repair"); 183 xfs_alert(mp, "Corruption detected. Unmount and run xfs_repair");
184} 184}