Skip to content

Commit 35ce09e

Browse files
committed
[tests] Fix device name in the preparation script
This fix doesn't affect the test result since dm-thin commits metadata implicitly while processing pool messages.
1 parent b9424b2 commit 35ce09e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/testdata/scripts/tmeta_with_empty_roots.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ lvcreate ${vg} --type thin-pool --name ${tp} --size ${pool_size} \
1717
--chunksize ${blocksize} --poolmetadatasize ${metadata_size} \
1818
-Zn --poolmetadataspare=n
1919

20+
# commit a metadata transaction
21+
dmsetup status "${vg}-${tp}"
22+
2023
lvcreate ${vg} --type thin --name ${lv_name} --thinpool ${tp} --virtualsize ${lv_size}
2124

2225
# commit a metadata transaction
23-
dmsetup status "${vg}/${tp}-tpool"
26+
dmsetup status "${vg}-${tp}-tpool"
2427

2528
# write some data ...
2629
dd if=/dev/zero of="/dev/mapper/${vg}-${lv_name}" bs=1M count=4
173 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)