test_stripe_05.sh 544 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # SPDX-License-Identifier: GPL-2.0
  3. . "$(cd "$(dirname "$0")" && pwd)"/test_common.sh
  4. ERR_CODE=0
  5. if ! _have_program fio; then
  6. exit "$UBLK_SKIP_CODE"
  7. fi
  8. _prep_test "stripe" "write and verify test on user copy"
  9. _create_backfile 0 256M
  10. _create_backfile 1 256M
  11. dev_id=$(_add_ublk_dev -t stripe -q 2 -u "${UBLK_BACKFILES[0]}" "${UBLK_BACKFILES[1]}")
  12. _check_add_dev $TID $?
  13. # run fio over the ublk disk
  14. _run_fio_verify_io --filename=/dev/ublkb"${dev_id}" --size=512M
  15. ERR_CODE=$?
  16. _cleanup_test "stripe"
  17. _show_result $TID $ERR_CODE