From: Darrick J. Wong Date: Wed, 23 Nov 2022 17:09:22 +0000 (-0800) Subject: xfs_db: fix printing of reverse mapping record blockcounts X-Git-Tag: origin/for-next_2022-12-13~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9dea7effca637e4417822acae1063de624b0eff;p=thirdparty%2Fxfsprogs-dev.git xfs_db: fix printing of reverse mapping record blockcounts FLDT_EXTLEN is the correct type for a 32-bit block count within an AG; FLDT_REXTLEN is the type for a 21-bit file mapping block count. This code should have been using the first type, not the second. Signed-off-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/db/btblock.c b/db/btblock.c index 24c656698..c563fb038 100644 --- a/db/btblock.c +++ b/db/btblock.c @@ -727,7 +727,7 @@ const field_t rmapbt_key_flds[] = { const field_t rmapbt_rec_flds[] = { { "startblock", FLDT_AGBLOCK, OI(RMAPBT_STARTBLOCK_BITOFF), C1, 0, TYP_DATA }, - { "blockcount", FLDT_REXTLEN, OI(RMAPBT_BLOCKCOUNT_BITOFF), C1, 0, TYP_NONE }, + { "blockcount", FLDT_EXTLEN, OI(RMAPBT_BLOCKCOUNT_BITOFF), C1, 0, TYP_NONE }, { "owner", FLDT_INT64D, OI(RMAPBT_OWNER_BITOFF), C1, 0, TYP_NONE }, { "offset", FLDT_RFILEOFFD, OI(RMAPBT_OFFSET_BITOFF), C1, 0, TYP_NONE }, { "extentflag", FLDT_REXTFLG, OI(RMAPBT_EXNTFLAG_BITOFF), C1, 0,