From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: cem@kernel.org, aalbersh@kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 4/8] xfs_db: access realtime file blocks
Date: Mon, 28 Oct 2024 10:50:04 -0700 [thread overview]
Message-ID: <20241028175004.GT21840@frogsfrogsfrogs> (raw)
In-Reply-To: <Zx9NOOgASfMFkqzP@infradead.org>
On Mon, Oct 28, 2024 at 01:37:12AM -0700, Christoph Hellwig wrote:
> > + if (is_rtfile(iocur_top->data))
> > + set_rt_cur(&typtab[type], (int64_t)dfsbno << mp->m_blkbb_log,
>
> Shouldn't this be xfs_rtb_to_daddr?
This series is for xfsprogs 6.12; the helpers adding rtb <-> daddr
conversions won't get added until the rtgroups cleanups that are headed
towards 6.13.
I could try to fling a patch for 6.12 to add these trivial helpers, hope
that I can persuade Carlos to persuade Linus to add that for 6.12-rc6,
then wait until next week to port the new helper patch to xfsprogs and
*then* resend this series. Then I'd rebase all the 6.13 stuff, initiate
another round of review, and maybe we can push metadir into 6.13
for-next after rc6.
Good grief that sounds incredibly bureaucratic for a left and right
shift helper.
I'm going to add rtb_to_daddr and daddr_to_rtb to db/block.h for now and
update them to the xfs_ versions in the metadir patchset.
> > diff --git a/db/faddr.c b/db/faddr.c
> > index ec4aae68bb5a81..fd65b86b5e915d 100644
> > --- a/db/faddr.c
> > +++ b/db/faddr.c
> > @@ -323,7 +323,9 @@ fa_drtbno(
> > dbprintf(_("null block number, cannot set new addr\n"));
> > return;
> > }
> > - /* need set_cur to understand rt subvolume */
> > +
> > + set_rt_cur(&typtab[next], (int64_t)XFS_FSB_TO_BB(mp, bno), blkbb,
> > + DB_RING_ADD, NULL);
>
> Same here?
Yep.
--D
next prev parent reply other threads:[~2024-10-28 17:50 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 6:26 [PATCHBOMB] xfsprogs: utility changes for 6.12 Darrick J. Wong
2024-10-25 6:31 ` Darrick J. Wong
2024-10-25 6:31 ` [PATCHSET v31.2 1/5] xfsprogs: atomic file content commits Darrick J. Wong
2024-10-25 6:32 ` [PATCH 1/7] man: document file range commit ioctls Darrick J. Wong
2024-10-28 8:31 ` Christoph Hellwig
2024-10-25 6:32 ` [PATCH 2/7] libfrog: add support for commit range ioctl family Darrick J. Wong
2024-10-28 8:32 ` Christoph Hellwig
2024-10-25 6:33 ` [PATCH 3/7] libxfs: remove unused xfs_inode fields Darrick J. Wong
2024-10-28 8:32 ` Christoph Hellwig
2024-10-25 6:33 ` [PATCH 4/7] libxfs: validate inumber in xfs_iget Darrick J. Wong
2024-10-28 8:32 ` Christoph Hellwig
2024-10-25 6:33 ` [PATCH 5/7] xfs_fsr: port to new file exchange library function Darrick J. Wong
2024-10-28 8:33 ` Christoph Hellwig
2024-10-25 6:34 ` [PATCH 6/7] xfs_io: add a commitrange option to the exchangerange command Darrick J. Wong
2024-10-28 8:33 ` Christoph Hellwig
2024-10-25 6:34 ` [PATCH 7/7] xfs_io: add atomic file update commands to exercise file commit range Darrick J. Wong
2024-10-28 8:33 ` Christoph Hellwig
2024-10-25 6:31 ` [PATCHSET v2.6 2/5] xfs_db: debug realtime geometry Darrick J. Wong
2024-10-25 6:34 ` [PATCH 1/8] xfs_db: support passing the realtime device to the debugger Darrick J. Wong
2024-10-28 8:34 ` Christoph Hellwig
2024-10-25 6:34 ` [PATCH 2/8] xfs_db: report the realtime device when associated with each io cursor Darrick J. Wong
2024-10-28 8:34 ` Christoph Hellwig
2024-10-25 6:35 ` [PATCH 3/8] xfs_db: make the daddr command target the realtime device Darrick J. Wong
2024-10-28 8:35 ` Christoph Hellwig
2024-10-25 6:35 ` [PATCH 4/8] xfs_db: access realtime file blocks Darrick J. Wong
2024-10-28 8:37 ` Christoph Hellwig
2024-10-28 17:50 ` Darrick J. Wong [this message]
2024-10-25 6:35 ` [PATCH 5/8] xfs_db: access arbitrary realtime blocks and extents Darrick J. Wong
2024-10-28 8:38 ` Christoph Hellwig
2024-10-28 17:51 ` Darrick J. Wong
2024-10-25 6:35 ` [PATCH 6/8] xfs_db: enable conversion of rt space units Darrick J. Wong
2024-10-28 8:41 ` Christoph Hellwig
2024-10-28 17:58 ` Darrick J. Wong
2024-10-25 6:36 ` [PATCH 7/8] xfs_db: convert rtbitmap geometry Darrick J. Wong
2024-10-28 8:42 ` Christoph Hellwig
2024-10-25 6:36 ` [PATCH 8/8] xfs_db: convert rtsummary geometry Darrick J. Wong
2024-10-28 8:42 ` Christoph Hellwig
2024-10-25 6:31 ` [PATCHSET v2.6 3/5] xfs_metadump: support external devices Darrick J. Wong
2024-10-25 6:36 ` [PATCH 1/1] xfs_db: allow setting current address to log blocks Darrick J. Wong
2024-10-28 8:43 ` Christoph Hellwig
2024-10-25 6:32 ` [PATCHSET v2.6 4/5] mkfs/repair: use new rtbitmap helpers Darrick J. Wong
2024-10-25 6:36 ` [PATCH 1/6] xfs_repair: checking rt free space metadata must happen during phase 4 Darrick J. Wong
2024-10-28 8:43 ` Christoph Hellwig
2024-10-25 6:37 ` [PATCH 2/6] xfs_repair: use xfs_validate_rt_geometry Darrick J. Wong
2024-10-25 6:37 ` [PATCH 3/6] mkfs: remove a pointless rtfreesp_init forward declaration Darrick J. Wong
2024-10-25 6:37 ` [PATCH 4/6] mkfs: use xfs_rtfile_initialize_blocks Darrick J. Wong
2024-10-25 6:37 ` [PATCH 5/6] xfs_repair: use libxfs_rtfile_initialize_blocks Darrick J. Wong
2024-10-25 6:38 ` [PATCH 6/6] xfs_repair: stop preallocating blocks in mk_rbmino and mk_rsumino Darrick J. Wong
2024-10-25 6:32 ` [PATCHSET v31.2 5/5] xfs_scrub_all: bug fix for 6.12 Darrick J. Wong
2024-10-25 6:38 ` [PATCH 1/1] xfs_scrub_all: wait for services to start activating Darrick J. Wong
2024-10-28 8:44 ` Christoph Hellwig
2024-10-28 16:45 ` Darrick J. Wong
-- strict thread matches above, loose matches on Subject: below --
2024-10-31 23:07 [PATCHSET v5.3 3/7] xfs_db: debug realtime geometry Darrick J. Wong
2024-10-31 23:22 ` [PATCH 4/8] xfs_db: access realtime file blocks Darrick J. Wong
2024-10-29 15:47 [PATCHSET v5.2 1/2] xfs_db: debug realtime geometry Darrick J. Wong
2024-10-29 15:48 ` [PATCH 4/8] xfs_db: access realtime file blocks Darrick J. Wong
2024-10-30 4:34 ` Christoph Hellwig
2023-12-31 19:52 [PATCHSET v2.0 03/17] xfs_db: debug realtime geometry Darrick J. Wong
2023-12-31 23:45 ` [PATCH 4/8] xfs_db: access realtime file blocks Darrick J. Wong
2022-12-30 22:19 [PATCHSET v1.0 0/8] xfs_db: debug realtime geometry Darrick J. Wong
2022-12-30 22:19 ` [PATCH 4/8] xfs_db: access realtime file blocks Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241028175004.GT21840@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=aalbersh@kernel.org \
--cc=cem@kernel.org \
--cc=hch@infradead.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox