diff options
author | Bob Peterson <rpeterso@redhat.com> | 2018-08-15 20:09:49 +0300 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-08-28 20:51:08 +0300 |
commit | 72244b6bc752b5c496f09de9a13c18adc314a53c (patch) | |
tree | 84c100780cc7e2a4d7023b3b0c701da93054d060 /fs/gfs2/util.c | |
parent | 050cdc6c9501abcd64720b8cc3e7941efee9547d (diff) | |
download | linux-72244b6bc752b5c496f09de9a13c18adc314a53c.tar.xz |
gfs2: improve debug information when lvb mismatches are found
Before this patch, gfs2_rgrp_bh_get would check for lvb mismatches,
but it wouldn't tell you what was actually wrong. This patch adds
more information to help us debug it. It also makes rgrp consistency
checks dump any bad rgrps, and the rgrp dump code dump any lvbs
as well as the rgrp itself.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/util.c')
-rw-r--r-- | fs/gfs2/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c index 59c811de0dc7..b072b10fb635 100644 --- a/fs/gfs2/util.c +++ b/fs/gfs2/util.c @@ -19,6 +19,7 @@ #include "gfs2.h" #include "incore.h" #include "glock.h" +#include "rgrp.h" #include "util.h" struct kmem_cache *gfs2_glock_cachep __read_mostly; @@ -181,6 +182,8 @@ int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, { struct gfs2_sbd *sdp = rgd->rd_sbd; int rv; + + gfs2_rgrp_dump(NULL, rgd->rd_gl); rv = gfs2_lm_withdraw(sdp, "fatal: filesystem consistency error\n" " RG = %llu\n" |