]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/142, btrfs/143: fix dmdust device names
authorFilipe Manana <fdmanana@suse.com>
Tue, 10 Dec 2024 17:33:47 +0000 (17:33 +0000)
committerZorro Lang <zlang@kernel.org>
Sun, 22 Dec 2024 14:09:46 +0000 (22:09 +0800)
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>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/142
tests/btrfs/143

index cf7e8daa3cc3f43dc847f02708d697acab70a9de..0ab0f8012bad7461d287880faaf1827443dab106 100755 (executable)
@@ -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
 
index 5da9a578f01f01dca95c7fdcb814127506ed1e0a..490f27b5b82f5e4c2cbf6f73d964f2ac5eb233a4 100755 (executable)
@@ -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