1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3 4. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh 5 6TID="stripe_03" 7ERR_CODE=0 8 9if ! _have_program fio; then 10 exit "$UBLK_SKIP_CODE" 11fi 12 13_prep_test "stripe" "write and verify test" 14 15backfile_0=$(_create_backfile 256M) 16backfile_1=$(_create_backfile 256M) 17 18dev_id=$(_add_ublk_dev -q 2 -t stripe "$backfile_0" "$backfile_1") 19_check_add_dev $TID $? "${backfile_0}" 20 21# run fio over the ublk disk 22_run_fio_verify_io --filename=/dev/ublkb"${dev_id}" --size=512M 23ERR_CODE=$? 24 25_cleanup_test "stripe" 26 27_remove_backfile "$backfile_0" 28_remove_backfile "$backfile_1" 29 30_show_result $TID $ERR_CODE 31