1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3 4. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh 5 6ERR_CODE=0 7 8if ! _have_program fio; then 9 exit "$UBLK_SKIP_CODE" 10fi 11 12_prep_test "null" "basic IO test with zero copy" 13 14dev_id=$(_add_ublk_dev -t null -z) 15_check_add_dev $TID $? 16 17# run fio over the two disks 18fio --name=job1 --filename=/dev/ublkb"${dev_id}" --ioengine=libaio --rw=readwrite --iodepth=32 --size=256M > /dev/null 2>&1 19ERR_CODE=$? 20 21_cleanup_test "null" 22 23_show_result $TID $ERR_CODE 24