diff mbox series

[07/40] fstests: per-test dmthin instances

Message ID 20241127045403.3665299-8-david@fromorbit.com (mailing list archive)
State New
Headers show
Series fstests: concurrent test execution | expand

Commit Message

Dave Chinner Nov. 27, 2024, 4:51 a.m. UTC
From: Dave Chinner <dchinner@redhat.com>

We can't run two tests that use dmthin at the same time because
the device name is the same. hence they interfere with each other.
Give dmthin devices their own per-test names to avoid this
problem.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 common/dmthin | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/common/dmthin b/common/dmthin
index 7107d5080..f2c00f5a7 100644
--- a/common/dmthin
+++ b/common/dmthin
@@ -9,16 +9,16 @@ 
 # from a single scratch device
 
 # Backing data dev
-DMTHIN_DATA_NAME="thin-data"
+DMTHIN_DATA_NAME="thin-data.$seq"
 DMTHIN_DATA_DEV="/dev/mapper/$DMTHIN_DATA_NAME"
 # Backing metadata dev
-DMTHIN_META_NAME="thin-meta"
+DMTHIN_META_NAME="thin-meta.$seq"
 DMTHIN_META_DEV="/dev/mapper/$DMTHIN_META_NAME"
 # Backing pool dev (combination of above)
-DMTHIN_POOL_NAME="thin-provision-pool"
+DMTHIN_POOL_NAME="thin-provision-pool.$seq"
 DMTHIN_POOL_DEV="/dev/mapper/$DMTHIN_POOL_NAME"
 # Thin volume
-DMTHIN_VOL_NAME="thin-vol"
+DMTHIN_VOL_NAME="thin-vol.$seq"
 DMTHIN_VOL_DEV="/dev/mapper/$DMTHIN_VOL_NAME"
 
 _dmthin_cleanup()