Skip to content

Commit 72070e5

Browse files
Ming Leiaxboe
Ming Lei
authored andcommitted
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 <[email protected]> Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Uday Shankar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 06a2236 commit 72070e5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
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)