diff mbox series

btrfs/142, btrfs/143: fix dmdust device names

Message ID e890661f90bde3b8119bd9a533760b2c8e162cfd.1733852020.git.fdmanana@suse.com (mailing list archive)
State New
Headers show
Series btrfs/142, btrfs/143: fix dmdust device names | expand

Commit Message

Filipe Manana Dec. 10, 2024, 5:33 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

After commit aaa132777476 ("fstests: per-test dmdust instances") the
dmdust device names are no longer a plain 'dust-test', they now have
a suffix matching '.N', where N is the test's sequence number.
The test cases btrf/142 and btrfs/143 are still using the old device
names, so they fail. Fix this my making them refer to 'dust-test.$seq'
instead of 'dust-test'.

Fixes: aaa132777476 ("fstests: per-test dmdust instances")
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 tests/btrfs/142 | 4 ++--
 tests/btrfs/143 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Qu Wenruo Dec. 17, 2024, 7:54 a.m. UTC | #1
在 2024/12/11 04:03, fdmanana@kernel.org 写道:
> From: Filipe Manana <fdmanana@suse.com>
> 
> After commit aaa132777476 ("fstests: per-test dmdust instances") the
> dmdust device names are no longer a plain 'dust-test', they now have
> a suffix matching '.N', where N is the test's sequence number.
> The test cases btrf/142 and btrfs/143 are still using the old device
> names, so they fail. Fix this my making them refer to 'dust-test.$seq'
> instead of 'dust-test'.
> 
> Fixes: aaa132777476 ("fstests: per-test dmdust instances")
> Signed-off-by: Filipe Manana <fdmanana@suse.com>

Reviewed-by: Qu Wenruo <wqu@suse.com>

Thanks,
Qu

> ---
>   tests/btrfs/142 | 4 ++--
>   tests/btrfs/143 | 4 ++--
>   2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/btrfs/142 b/tests/btrfs/142
> index cf7e8daa..0ab0f801 100755
> --- a/tests/btrfs/142
> +++ b/tests/btrfs/142
> @@ -58,8 +58,8 @@ _mount_dust
>   # step 3, 128k dio read (this read can repair bad copy)
>   echo "step 3......repair the bad copy" >>$seqres.full
>   
> -$DMSETUP_PROG message dust-test 0 addbadblock $((physical / 512))
> -$DMSETUP_PROG message dust-test 0 enable
> +$DMSETUP_PROG message dust-test.$seq 0 addbadblock $((physical / 512))
> +$DMSETUP_PROG message dust-test.$seq 0 enable
>   
>   _btrfs_direct_read_on_mirror $stripe 2 "$SCRATCH_MNT/foobar" 0 128K
>   
> diff --git a/tests/btrfs/143 b/tests/btrfs/143
> index 5da9a578..490f27b5 100755
> --- a/tests/btrfs/143
> +++ b/tests/btrfs/143
> @@ -65,8 +65,8 @@ _mount_dust
>   # step 3, 128k buffered read (this read can repair bad copy)
>   echo "step 3......repair the bad copy" >>$seqres.full
>   
> -$DMSETUP_PROG message dust-test 0 addbadblock $((physical / 512))
> -$DMSETUP_PROG message dust-test 0 enable
> +$DMSETUP_PROG message dust-test.$seq 0 addbadblock $((physical / 512))
> +$DMSETUP_PROG message dust-test.$seq 0 enable
>   
>   _btrfs_buffered_read_on_mirror $stripe 2 "$SCRATCH_MNT/foobar" 0 128K
>
diff mbox series

Patch

diff --git a/tests/btrfs/142 b/tests/btrfs/142
index cf7e8daa..0ab0f801 100755
--- a/tests/btrfs/142
+++ b/tests/btrfs/142
@@ -58,8 +58,8 @@  _mount_dust
 # step 3, 128k dio read (this read can repair bad copy)
 echo "step 3......repair the bad copy" >>$seqres.full
 
-$DMSETUP_PROG message dust-test 0 addbadblock $((physical / 512))
-$DMSETUP_PROG message dust-test 0 enable
+$DMSETUP_PROG message dust-test.$seq 0 addbadblock $((physical / 512))
+$DMSETUP_PROG message dust-test.$seq 0 enable
 
 _btrfs_direct_read_on_mirror $stripe 2 "$SCRATCH_MNT/foobar" 0 128K
 
diff --git a/tests/btrfs/143 b/tests/btrfs/143
index 5da9a578..490f27b5 100755
--- a/tests/btrfs/143
+++ b/tests/btrfs/143
@@ -65,8 +65,8 @@  _mount_dust
 # step 3, 128k buffered read (this read can repair bad copy)
 echo "step 3......repair the bad copy" >>$seqres.full
 
-$DMSETUP_PROG message dust-test 0 addbadblock $((physical / 512))
-$DMSETUP_PROG message dust-test 0 enable
+$DMSETUP_PROG message dust-test.$seq 0 addbadblock $((physical / 512))
+$DMSETUP_PROG message dust-test.$seq 0 enable
 
 _btrfs_buffered_read_on_mirror $stripe 2 "$SCRATCH_MNT/foobar" 0 128K