-#!/bin/bash
+#!/usr/bin/env bash
#
# Test simple read/write using plain bdrv_read/bdrv_write
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test simple read/write using plain bdrv_pread/bdrv_pwrite
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test simple read/write using bdrv_aio_readv/bdrv_aio_writev
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Make sure we can't read and write outside of the image size.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Make sure qemu-img can create 5TB images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Check for one possible case of qcow2 refcount corruption.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test simple asynchronous read/write operations.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Nolan I qcow2 corruption - incorrectly reports free clusters
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Nolan II qcow2 corruption - wrong used cluster
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for AIO allocation on the same cluster
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Make sure we can open read-only images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 pattern test, empty and compressed image - 4k cluster patterns
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 pattern test, complex patterns including compression and snapshots
# Using patterns for 4k cluster size.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Combined test to grow the refcount table and test snapshots.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Simple backing file reads
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Merge backing file into test image when converting the image
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# When using a backing file for the output image in qemu-img convert,
# the backing file clusters must not copied. The data must still be
-#!/bin/bash
+#!/usr/bin/env bash
#
# Commit changes to backing file
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test handling of invalid patterns arguments to qemu-io
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test bdrv_load/save_vmstate using the usual patterns
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 pattern test with various cluster sizes
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Rebasing COW images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Resizing images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 error path testing
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that sub-cluster allocating writes zero the rest of the cluster
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that backing files can be smaller than the image
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 internal snapshots/VM state tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that all qcow2 header extensions survive a header rewrite
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that AIO requests are drained before an image is closed. This used
# to segfault because the request coroutine kept running even after the
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test aligned and misaligned write zeroes operations.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test bdrv_pwrite_zeroes with backing files (see also 154)
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Let a few AIO requests run in parallel and have them access different L2
# tables so that the cache has a chance to get used up.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qcow2 feature bits
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test COW from backing files
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test COW from backing files with AIO
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qcow2 lazy refcounts
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qemu-img operation on zero size images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that qemu-img info --backing-chain detects infinite loops
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test concurrent cluster allocations
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Regression test for commit b7ab0fea (which was a corruption fix,
# despite the commit message claiming otherwise)
-#!/bin/bash
+#!/usr/bin/env bash
##
## qemu-img compare test
##
-#!/bin/bash
+#!/usr/bin/env bash
#
# Check qemu-img option parsing
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qemu-img rebase with zero clusters
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test command line configuration of block devices and driver-specific options
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test bdrv_read/bdrv_write using BDRV_O_SNAPSHOT
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qemu-img convert when image length is not a multiple of cluster size
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test huge qcow2 images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test export internal snapshot by qemu-nbd, convert it by qemu-img.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for vmdk
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for image corruption (overlapping data structures) in qcow2
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for image option amendment in qcow2.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for snapshotting images with unallocated zero clusters in
# qcow2
-#!/bin/bash
+#!/usr/bin/env bash
#
# test of qemu-img convert -n - convert without creation
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test VHDX read/write from a sample image created with Hyper-V
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for preallocated zero clusters in qcow2
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test automatic deletion of BDSes created by -drive/drive_add
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for loading a saved VM state from a qcow2 image
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for deleting a backing file
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test VHDX log replay from an image with a journal that needs to be
# replayed
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for the QMP blkdebug and blkverify interfaces
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for nested image formats
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test count_contiguous_clusters in qcow2
#
-#!/bin/bash
+#!/usr/bin/env bash
##
## qemu-img compare test (qcow2 only ones)
##
-#!/bin/bash
+#!/usr/bin/env bash
#
# cloop format input validation tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# parallels format input validation tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test concurrent pread/pwrite
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# bochs format input validation tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qcow2 preallocation with different cluster_sizes
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 format input validation tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test Quorum block driver
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qemu-img command line parsing
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test NBD client unexpected disconnect
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for VDI header corruption; image too large, and too many blocks.
# Also simple test for creating dynamic and static VDI images.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Live snapshot tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qemu-img progress output
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test unsupported blockdev-add cases
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# vpc (VHD) format input validation tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for support of JSON filenames
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for discarding compressed clusters on qcow2 images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Live migration test
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow1 format input validation tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for drive-mirror to NBD
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for commit of larger active layer
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Commit changes into backing chains and empty the top image if the
# backing image is not explicitly specified
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qcow2's bdrv_make_empty for images without internal snapshots
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test valid filenames for blkdebug and blkverify representatively for
# other protocols (such as NBD) when queried
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test short file I/O
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for qemu-io -c map and qemu-img map
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for qcow2 metadata cache size specification
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test image creation with aligned and unaligned sizes
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Create, read, write big image
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test preallocated resize of raw images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Tests updates of the qcow2 L1 table
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for repairing qcow2 images which cannot be repaired using
# the on-disk refcount structures
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test writing image headers of other formats into raw images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for relative backing file names in complex BDS trees
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for non-existing backing file when creating a qcow2 image
# and not specifying the size
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test cases for different refcount_bits values
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for accessing creation options on image formats and
# protocols not supporting image creation
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test invalid backing file format in qcow2 images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for non-self-referential qcow2 refcount blocks
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test error code paths for invalid QED images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for shared BDS between backend trees
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# NBD test case for overriding BDRV_O_PROTOCOL by explicitly specifying
# a driver
-#!/bin/bash
+#!/usr/bin/env bash
#
# Non-NBD test cases for overriding BDRV_O_PROTOCOL by explicitly
# specifying a driver
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test cases for qcow2 refcount table growth
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test some qemu-img convert cases
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for qemu-img convert to NBD
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test preallocated growth of qcow2 images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Tests handling of colons in filenames (which may be confused with protocol
# prefixes)
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for mirroring with dataplane
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that opening O_DIRECT succeeds when image file I/O produces EIO
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that temporary backing file overrides (on the command line or in
# blockdev-add) don't replace the original path stored in the image during
-#!/bin/bash
+#!/usr/bin/env bash
#
# parallels format validation tests (created by QEMU)
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for reopen
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test encrypted read/write using plain bdrv_read/bdrv_write
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test VPC open of image with large Max Table Entries value.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qcow2 reopen
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# General test case for qcow2's image check
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for ejecting a BlockBackend with an NBD server attached to it
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for ejecting BDSs with block jobs still running on them
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for configuring cache modes of arbitrary nodes (requires O_DIRECT)
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for connecting to a non-existing NBD export name
#
-#!/bin/bash
+#!/usr/bin/env bash
# Check live snapshot, followed by active commit, and another snapshot.
#
# This test is to catch the error case of BZ #1300209:
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test the combination of -incoming and snapshot=on
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test VHD image format creator detection and override
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that qemu-img convert -S 0 fully allocates the target image
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test image locking
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qcow2 specific bdrv_pwrite_zeroes tests with backing files (complements 034)
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Tests oVirt-like storage migration:
# - Create snapshot
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test command line configuration of block devices with qdev
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test encrypted read/write using backing files
#
-#! /bin/bash
+#!/usr/bin/env bash
#
# qemu-img dd test with different block sizes
#
-#! /bin/bash
+#!/usr/bin/env bash
#
# qemu-img dd test for the skip option
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test reopening a backing image after block-stream and block-commit
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for specifying runtime options of the wrong type to some
# block drivers
-#! /bin/bash
+#!/usr/bin/env bash
#
# qemu-img dd test
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test 'offset' and 'size' options of the raw driver. Make sure we can't
# (or can) read and write outside of the image size.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test floppy configuration
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test QAPI commands looking up protocol based images with relative
# filename backing strings
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test that qemu-io fail with non-zero exit code
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test creating raw image preallocation mode
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Commit changes into backing chains and empty the top image if the
# backing image is not explicitly specified.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test corner cases with unusual block geometries
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qemu-img measure sub-command tests
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for write zeroes with unmap
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test postcopy live migration with shared storage
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test image locking for POSIX locks
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test old-style block migration (migrate -b)
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test I/O throttle block filter driver interface
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test exiting qemu while jobs are still running
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test 'info block' with all kinds of configurations
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test switching between read-only and read-write
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test encrypted read/write using plain bdrv_read/bdrv_write
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test encrypted read/write using backing files
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# qemu-img measure sub-command tests on huge qcow2 files
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test commit block job where top has two parents
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test NBD export with -incoming (non-shared storage migration use case from
# libvirt)
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test change-backing-file command
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for copy-on-read into qcow2
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test commit of encrypted qcow2 files
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Block job co-routine race condition test.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test savevm and loadvm after live migration with postcopy flag
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test corner cases with unusual block geometries
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qcow2 image compression
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test case for copy-on-read into qcow2, using the COR filter driver
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# I/O errors when working with internal qcow2 snapshots, and repairing
# the result
-#!/bin/bash
+#!/usr/bin/env bash
#
# max limits on compression in huge qcow2 files
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test qemu-img vs. unaligned images
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test reading dirty bitmap over NBD
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test vmdk backing file correlation
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This test covers expected filetypes for the file, host_cdrom and
# host_device drivers.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test query-blockstats with different ways to create a BB
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for force canceling a running blockjob that is paused in
# an error state.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test legacy and modern option parsing for rbd/ceph. This will not
# actually connect to a ceph server, but rather looks for the appropriate
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test for auto-read-only
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Test NBD TLS certificate / authorization integration
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
-#!/bin/bash
+#!/usr/bin/env bash
# -*- shell-script-mode -*-
#
# Helpers for NBD server related config
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (C) 2009 Red Hat, Inc.
#
-#!/bin/bash
+#!/usr/bin/env bash
#
# This allows for launching of multiple QEMU instances, with independent
# communication possible to each instance.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
-#!/bin/bash
+#!/usr/bin/env bash
#
# Helpers for TLS related config
#