From: Filipe Manana Date: Tue, 10 Dec 2024 17:33:47 +0000 (+0000) Subject: btrfs/142, btrfs/143: fix dmdust device names X-Git-Tag: v2024.12.22~5 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9b12a1a8a35bb491076332e21a113c43851ceb69;p=xfstests-dev.git btrfs/142, btrfs/143: fix dmdust device names 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 Reviewed-by: Qu Wenruo Signed-off-by: Zorro Lang --- 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