From: Eryu Guan <guan@eryu.me>
To: Naohiro Aota <naohiro.aota@wdc.com>
Cc: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 8/8] fstests: generic: add checks for zoned block device
Date: Sun, 15 Aug 2021 23:20:07 +0800 [thread overview]
Message-ID: <YRkwp1l/qVjg7x9m@desktop> (raw)
In-Reply-To: <20210811151232.3713733-9-naohiro.aota@wdc.com>
On Thu, Aug 12, 2021 at 12:12:32AM +0900, Naohiro Aota wrote:
> Modify generic tests to require non-zoned block device
>
> generic/108 is disabled on zoned block device because the LVM device not
> always aligned to the zone boundary.
>
> generic/471 is disabled because we cannot enable NoCoW on zoned btrfs.
>
> generic/570 is disabled because swap file which require nocow is not usable
> on zoned btrfs.
>
> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
> ---
> tests/generic/108 | 1 +
> tests/generic/471 | 1 +
> tests/generic/570 | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/tests/generic/108 b/tests/generic/108
> index 7dd426c19030..b51bce9f9bce 100755
> --- a/tests/generic/108
> +++ b/tests/generic/108
> @@ -35,6 +35,7 @@ _require_scratch_nocheck
> _require_block_device $SCRATCH_DEV
> _require_scsi_debug
> _require_command "$LVM_PROG" lvm
> +_require_non_zoned_device $SCRATCH_DEV
I think in generic/108 and generic/570 we should only check zoned device
if FSTYP is btrfs in in generic/471. And also need comments to explain
the reason to do so.
Thanks,
Eryu
>
> lvname=lv_$seq
> vgname=vg_$seq
> diff --git a/tests/generic/471 b/tests/generic/471
> index dab06f3a315c..66b7d6946a9f 100755
> --- a/tests/generic/471
> +++ b/tests/generic/471
> @@ -37,6 +37,7 @@ mkdir $testdir
> # all filesystems, use a NOCOW file on btrfs.
> if [ $FSTYP == "btrfs" ]; then
> _require_chattr C
> + _require_non_zoned_device $TEST_DEV
> touch $testdir/f1
> $CHATTR_PROG +C $testdir/f1
> fi
> diff --git a/tests/generic/570 b/tests/generic/570
> index 7d03acfe3c44..71928f0ac980 100755
> --- a/tests/generic/570
> +++ b/tests/generic/570
> @@ -25,6 +25,7 @@ _supported_fs generic
> _require_test_program swapon
> _require_scratch_nocheck
> _require_block_device $SCRATCH_DEV
> +_require_non_zoned_device "$SCRATCH_DEV"
> test -e /dev/snapshot && _notrun "userspace hibernation to swap is enabled"
>
> $MKSWAP_PROG "$SCRATCH_DEV" >> $seqres.full
> --
> 2.32.0
next prev parent reply other threads:[~2021-08-15 15:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-11 15:12 [PATCH v2 0/8] fstests: add checks for testing zoned btrfs Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 1/8] common/rc: introduce minimal fs size check Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 2/8] common/rc: fix blocksize detection for btrfs Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 3/8] btrfs/057: use _scratch_mkfs_sized to set filesystem size Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 4/8] fstests: btrfs: add minimal file system size check Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 5/8] common: add zoned block device checks Naohiro Aota
2021-08-15 14:42 ` Eryu Guan
2021-08-16 6:06 ` Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 6/8] shared/032: add check for zoned block device Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 7/8] fstests: btrfs: add checks " Naohiro Aota
2021-08-15 15:12 ` Eryu Guan
2021-08-16 6:10 ` Naohiro Aota
2021-08-11 15:12 ` [PATCH v2 8/8] fstests: generic: " Naohiro Aota
2021-08-15 15:20 ` Eryu Guan [this message]
2021-08-16 6:19 ` Naohiro Aota
2021-08-12 15:41 ` [PATCH v2 0/8] fstests: add checks for testing zoned btrfs David Sterba
2021-08-15 15:21 ` Eryu Guan
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=YRkwp1l/qVjg7x9m@desktop \
--to=guan@eryu.me \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.