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_feature "AUTO_BUF_REG"; then 9 exit "$UBLK_SKIP_CODE" 10fi 11 12if ! _have_program fio; then 13 exit "$UBLK_SKIP_CODE" 14fi 15 16_prep_test "null" "basic IO test" 17 18dev_id=$(_add_ublk_dev -t null -z --auto_zc --auto_zc_fallback) 19_check_add_dev $TID $? 20 21# run fio over the two disks 22fio --name=job1 --filename=/dev/ublkb"${dev_id}" --ioengine=libaio --rw=readwrite --iodepth=32 --size=256M > /dev/null 2>&1 23ERR_CODE=$? 24 25_cleanup_test "null" 26 27_show_result $TID $ERR_CODE 28