Skip to content

Commit ca6fd3a

Browse files
author
Ming Lei
committed
selftests: ublk: fix test_stripe_04
JIRA: https://issues.redhat.com/browse/RHEL-106845 commit 72070e5 Author: Ming Lei <ming.lei@redhat.com> Date: Fri Apr 4 08:18:49 2025 +0800 selftests: ublk: fix test_stripe_04 Commit 57ed58c ("selftests: ublk: enable zero copy for stripe target") added test entry of test_stripe_04, but forgot to add the test script. So fix the test by adding the script file. Reported-by: Uday Shankar <ushankar@purestorage.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Uday Shankar <ushankar@purestorage.com> Link: https://lore.kernel.org/r/20250404001849.1443064-1-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ming Lei <ming.lei@redhat.com>
1 parent 544a0e4 commit ca6fd3a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-2.0
3+
4+
. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh
5+
6+
TID="stripe_04"
7+
ERR_CODE=0
8+
9+
_prep_test "stripe" "mkfs & mount & umount on zero copy"
10+
11+
backfile_0=$(_create_backfile 256M)
12+
backfile_1=$(_create_backfile 256M)
13+
dev_id=$(_add_ublk_dev -t stripe -z -q 2 "$backfile_0" "$backfile_1")
14+
_check_add_dev $TID $? "$backfile_0" "$backfile_1"
15+
16+
_mkfs_mount_test /dev/ublkb"${dev_id}"
17+
ERR_CODE=$?
18+
19+
_cleanup_test "stripe"
20+
21+
_remove_backfile "$backfile_0"
22+
_remove_backfile "$backfile_1"
23+
24+
_show_result $TID $ERR_CODE

0 commit comments

Comments
 (0)