From: Anand Jain <anand.jain@oracle.com>
To: Naohiro Aota <naohiro.aota@wdc.com>, fstests@vger.kernel.org
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs/295: skip on zoned device as we cannot corrupt it directly
Date: Tue, 26 Sep 2023 22:27:27 +0800 [thread overview]
Message-ID: <56fab235-51fb-07e3-8f32-5bda65ba3cea@oracle.com> (raw)
In-Reply-To: <20230926141147.471503-1-naohiro.aota@wdc.com>
On 26/09/2023 22:11, Naohiro Aota wrote:
> We use _pwrite_byte to corrupt the root node, but such overwrite won't work
> on a sequential write required zone. So, skip the test on a zoned device.
>
> Technically, we can run this test case by checking if the physical location
> lands in a conventional zone. But, the logic should be no difference than
> the regular mode and I don't think it's worth doing so.
>
> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
> ---
> tests/btrfs/295 | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/btrfs/295 b/tests/btrfs/295
> index a9a8e5530a80..00a5c5680b86 100755
> --- a/tests/btrfs/295
> +++ b/tests/btrfs/295
> @@ -12,6 +12,8 @@ _begin_fstest auto quick dangerous
> . ./common/filter
> _supported_fs btrfs
> _require_scratch
> +# Directly writing to the device, which may not work with a zoned device
> +_require_non_zoned_device "$SCRATCH_DEV"
Looks good.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
>
> # Use single metadata profile so we only need to corrupt one copy of tree block
> _scratch_mkfs -m single > $seqres.full
prev parent reply other threads:[~2023-09-26 14:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 14:11 [PATCH] btrfs/295: skip on zoned device as we cannot corrupt it directly Naohiro Aota
2023-09-26 14:27 ` Anand Jain [this message]
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=56fab235-51fb-07e3-8f32-5bda65ba3cea@oracle.com \
--to=anand.jain@oracle.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=naohiro.aota@wdc.com \
/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