From: Darrick J. Wong <djwong@xxxxxxxxxx> Teach the debugger to expose the "unwritten" flag in rmapbt keys so that we can simulate an old filesystem writing out bad keys for testing. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- db/btblock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/btblock.c b/db/btblock.c index 30f7b5ef955..d5be6adb734 100644 --- a/db/btblock.c +++ b/db/btblock.c @@ -770,6 +770,8 @@ const field_t rmapbt_key_flds[] = { { "startblock", FLDT_AGBLOCK, OI(KOFF(startblock)), C1, 0, TYP_DATA }, { "owner", FLDT_INT64D, OI(KOFF(owner)), C1, 0, TYP_NONE }, { "offset", FLDT_RFILEOFFD, OI(RMAPBK_OFFSET_BITOFF), C1, 0, TYP_NONE }, + { "extentflag", FLDT_REXTFLG, OI(RMAPBK_EXNTFLAG_BITOFF), C1, 0, + TYP_NONE }, { "attrfork", FLDT_RATTRFORKFLG, OI(RMAPBK_ATTRFLAG_BITOFF), C1, 0, TYP_NONE }, { "bmbtblock", FLDT_RBMBTFLG, OI(RMAPBK_BMBTFLAG_BITOFF), C1, 0, @@ -777,6 +779,8 @@ const field_t rmapbt_key_flds[] = { { "startblock_hi", FLDT_AGBLOCK, OI(HI_KOFF(startblock)), C1, 0, TYP_DATA }, { "owner_hi", FLDT_INT64D, OI(HI_KOFF(owner)), C1, 0, TYP_NONE }, { "offset_hi", FLDT_RFILEOFFD, OI(RMAPBK_OFFSETHI_BITOFF), C1, 0, TYP_NONE }, + { "extentflag_hi", FLDT_REXTFLG, OI(RMAPBK_EXNTFLAGHI_BITOFF), C1, 0, + TYP_NONE }, { "attrfork_hi", FLDT_RATTRFORKFLG, OI(RMAPBK_ATTRFLAGHI_BITOFF), C1, 0, TYP_NONE }, { "bmbtblock_hi", FLDT_RBMBTFLG, OI(RMAPBK_BMBTFLAGHI_BITOFF), C1, 0,