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