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