From: Zorro Lang <zlang@redhat.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org,
tytso@mit.edu, leah.rumancik@gmail.com
Subject: Re: [PATCH 7/8] filter: report data block mappings and od offsets in multiples of allocation units
Date: Thu, 14 Jul 2022 01:16:57 +0800 [thread overview]
Message-ID: <20220713171657.ee2vsdvedohwkce3@zlang-mailbox> (raw)
In-Reply-To: <165767383332.869123.15665387460779572064.stgit@magnolia>
On Tue, Jul 12, 2022 at 05:57:13PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> All the tests that use these two filter functions also make all of their
> fallocate calls in units of file allocation units, not filesystem
> blocks. Make them transform the file offsets to multiples of file
> allocation units (via _get_file_block_size) so that xfs/242 and xfs/252
> will work with XFS with a rt extent size set.
>
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> ---
Looks good,
Reviewed-by: Zorro Lang <zlang@redhat.com>
> common/filter | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>
> diff --git a/common/filter b/common/filter
> index 14f6a027..28dea646 100644
> --- a/common/filter
> +++ b/common/filter
> @@ -221,7 +221,7 @@ _filter_xfs_io_units_modified()
>
> _filter_xfs_io_blocks_modified()
> {
> - BLOCK_SIZE=$(_get_block_size $SCRATCH_MNT)
> + BLOCK_SIZE=$(_get_file_block_size $SCRATCH_MNT)
>
> _filter_xfs_io_units_modified "Block" $BLOCK_SIZE
> }
> @@ -457,7 +457,7 @@ _filter_busy_mount()
>
> _filter_od()
> {
> - BLOCK_SIZE=$(_get_block_size $SCRATCH_MNT)
> + BLOCK_SIZE=$(_get_file_block_size $SCRATCH_MNT)
> $AWK_PROG -v block_size=$BLOCK_SIZE '
> /^[0-9]+/ {
> offset = strtonum("0"$1);
>
next prev parent reply other threads:[~2022-07-13 17:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 0:56 [PATCHSET 0/8] fstests: check file block congruency of file range operations Darrick J. Wong
2022-07-13 0:56 ` [PATCH 1/8] misc: use _get_file_block_size for block (re)mapping tests Darrick J. Wong
2022-07-13 14:26 ` Zorro Lang
2022-07-13 0:56 ` [PATCH 2/8] misc: skip remap/fallocate tests when op length not congruent with file allocation unit Darrick J. Wong
2022-07-15 18:27 ` Zorro Lang
2022-07-15 22:24 ` Darrick J. Wong
2022-07-16 16:24 ` Zorro Lang
2022-07-18 17:30 ` Darrick J. Wong
2022-07-13 0:56 ` [PATCH 3/8] misc: skip extent size hint tests when hint " Darrick J. Wong
2022-07-13 0:56 ` [PATCH 4/8] misc: avoid tests encoding FIEMAP/BMAP golden output with weird file blocksizes Darrick J. Wong
2022-07-13 0:57 ` [PATCH 5/8] punch: use allocation unit to test punching holes Darrick J. Wong
2022-07-13 0:57 ` [PATCH 6/8] punch: skip fpunch tests when op length not congruent with file allocation unit Darrick J. Wong
2022-07-13 17:04 ` Zorro Lang
2022-07-13 17:33 ` Darrick J. Wong
2022-07-13 17:51 ` Zorro Lang
2022-07-18 17:31 ` Darrick J. Wong
2022-07-13 0:57 ` [PATCH 7/8] filter: report data block mappings and od offsets in multiples of allocation units Darrick J. Wong
2022-07-13 17:16 ` Zorro Lang [this message]
2022-07-13 0:57 ` [PATCH 8/8] punch: skip fpunch tests when page size not congruent with file allocation unit Darrick J. Wong
-- strict thread matches above, loose matches on Subject: below --
2022-07-19 21:37 [PATCHSET v2 0/8] fstests: check file block congruency of file range operations Darrick J. Wong
2022-07-19 21:37 ` [PATCH 7/8] filter: report data block mappings and od offsets in multiples of allocation units 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=20220713171657.ee2vsdvedohwkce3@zlang-mailbox \
--to=zlang@redhat.com \
--cc=djwong@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=leah.rumancik@gmail.com \
--cc=linux-xfs@vger.kernel.org \
--cc=tytso@mit.edu \
/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