Re: [PATCH 5/8] xfs_db: access arbitrary realtime blocks and extents

Darrick J. Wong
2024-10-28T17:51:47Z

On Mon, Oct 28, 2024 at 01:38:50AM -0700, Christoph Hellwig wrote:
> > + ASSERT(typtab[TYP_DATA].typnm == TYP_DATA);
> > + set_rt_cur(&typtab[TYP_DATA], XFS_FSB_TO_BB(mp, rtbno), blkbb,
> > + DB_RING_ADD, NULL);
>
> xfs_rtb_to_daddr?
>
> > + rtbno = XFS_BB_TO_FSB(mp, iocur_top->off >> BBSHIFT);
>
> xfs_daddr_to_rtb?

Yes to both.

--D