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