1*8cb9b971SMing Lei#!/bin/bash 2*8cb9b971SMing Lei# SPDX-License-Identifier: GPL-2.0 3*8cb9b971SMing Lei 4*8cb9b971SMing Lei. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh 5*8cb9b971SMing Lei 6*8cb9b971SMing LeiTID="null_02" 7*8cb9b971SMing LeiERR_CODE=0 8*8cb9b971SMing Lei 9*8cb9b971SMing Lei_prep_test "null" "basic IO test with zero copy" 10*8cb9b971SMing Lei 11*8cb9b971SMing Leidev_id=$(_add_ublk_dev -t null -z) 12*8cb9b971SMing Lei_check_add_dev $TID $? 13*8cb9b971SMing Lei 14*8cb9b971SMing Lei# run fio over the two disks 15*8cb9b971SMing Leifio --name=job1 --filename=/dev/ublkb"${dev_id}" --ioengine=libaio --rw=readwrite --iodepth=32 --size=256M > /dev/null 2>&1 16*8cb9b971SMing LeiERR_CODE=$? 17*8cb9b971SMing Lei 18*8cb9b971SMing Lei_cleanup_test "null" 19*8cb9b971SMing Lei 20*8cb9b971SMing Lei_show_result $TID $ERR_CODE 21