]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: per-test dmthin instances
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 20:41:49 +0000 (07:41 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:04:08 +0000 (22:04 +0800)
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>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/dmthin

index 7107d50804896ee008cfd3ac0e25b488dbf05bb2..f2c00f5a7106bc398620d1e48a8cfbb3da2c960a 100644 (file)
@@ -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()