1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3 4. "$(cd "$(dirname "$0")" && pwd)"/test_common.sh 5 6ERR_CODE=0 7 8_prep_test "loop" "mkfs & mount & umount" 9 10_create_backfile 0 256M 11dev_id=$(_add_ublk_dev -t loop "${UBLK_BACKFILES[0]}") 12_check_add_dev $TID $? 13 14_mkfs_mount_test /dev/ublkb"${dev_id}" 15ERR_CODE=$? 16 17_cleanup_test "loop" 18 19_show_result $TID $ERR_CODE 20