diff mbox series

[4/5] check-parallel: add logwrite device support

Message ID 20250115060258.3951185-5-david@fromorbit.com (mailing list archive)
State New
Headers show
Series : CLI and feature improvements for check-parallel | expand

Commit Message

Dave Chinner Jan. 15, 2025, 5:51 a.m. UTC
From: Dave Chinner <dchinner@redhat.com>

It is just another loop device per test runner....

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 check-parallel | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/check-parallel b/check-parallel
index a341c9c2e..498b53c5a 100755
--- a/check-parallel
+++ b/check-parallel
@@ -208,12 +208,14 @@  runner_go()
 	local me=$basedir/runner-$id
 	local _test=$me/test.img
 	local _scratch=$me/scratch.img
+	local _logwrites=$me/logwrites.img
 	local _results=$me/results-$2
 
 	mkdir -p $me
 
 	xfs_io -f -c 'truncate 2g' $_test
 	xfs_io -f -c 'truncate 8g' $_scratch
+	xfs_io -f -c 'truncate 1g' $_logwrites
 
 	mkfs.xfs -f $_test > /dev/null 2>&1
 
@@ -221,6 +223,7 @@  runner_go()
 	export TEST_DIR=$me/test
 	export SCRATCH_DEV=$(_create_loop_device $_scratch)
 	export SCRATCH_MNT=$me/scratch
+	export LOGWRITES_DEV=$(_create_loop_device $_logwrites)
 	export FSTYP=xfs
 	export RESULT_BASE=$_results
 
@@ -241,6 +244,7 @@  runner_go()
 	umount -R $SCRATCH_MNT 2> /dev/null
 	_destroy_loop_device $TEST_DEV
 	_destroy_loop_device $SCRATCH_DEV
+	_destroy_loop_device $LOGWRITES_DEV
 
 	grep -q Failures: $me/log
 	if [ $? -eq 0 ]; then