xfs_repair: complain about extents in unknown state
During phase 4, if we find any extents that are unaccounted for, report
the entire extent, not just the first block.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/repair/phase4.c b/repair/phase4.c
index a43413c..191b484 100644
--- a/repair/phase4.c
+++ b/repair/phase4.c
@@ -315,8 +315,8 @@
case XR_E_BAD_STATE:
default:
do_warn(
- _("unknown block state, ag %d, block %d\n"),
- i, j);
+ _("unknown block state, ag %d, blocks %u-%u\n"),
+ i, j, j + blen - 1);
/* fall through .. */
case XR_E_UNKNOWN:
case XR_E_FREE: