Lines Matching full:file
44 _supported_proto file
47 # our own external data file, we cannot let the user specify one
51 echo "=== Create and open image with external data file ==="
54 echo "With data file name in the image:"
59 $QEMU_IO -c "open -odata-file.filename=$TEST_IMG.data $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filte…
60 $QEMU_IO -c "open -odata-file.filename=inexistent $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filter_qe…
63 echo "Data file required, but without data file name in the image:"
67 $QEMU_IO -c "open -odata-file.filename=$TEST_IMG.data $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filte…
68 $QEMU_IO -c "open -odata-file.filename=inexistent $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filter_qe…
71 echo "Setting data-file for an image with internal data:"
74 $QEMU_IO -c "open -odata-file.filename=$TEST_IMG.data $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filte…
75 $QEMU_IO -c "open -odata-file.filename=inexistent $TEST_IMG" -c "read -P 0 0 64k" 2>&1 | _filter_qe…
81 echo "Convert to compressed target with data file:"
109 echo "=== Standalone image with external data file (efficient) ==="
114 echo -n "qcow2 file size before I/O: "
144 # stale data in the external data file
154 echo -n "qcow2 file size after I/O: "
158 echo "=== Standalone image with external data file (valid raw) ==="
163 echo -n "qcow2 file size before I/O: "
185 # they can contain stale data in the external data file. Instead, zero
186 # clusters must be zeroed in the external data file too.
194 echo -n "qcow2 file size after I/O: "
198 echo "=== bdrv_co_block_status test for file and offset=0 ==="
220 'file': {
221 'driver': 'file',
224 'data-file': {
227 'driver': 'file',
236 echo "=== Flushing should flush the data file ==="
239 # We are going to flush a qcow2 file with a blkdebug node inserted
240 # between the qcow2 node and its data file node. The blkdebug node
241 # will return an error for all flushes and so we if the data file is
251 'file': {
252 'driver': 'file',
255 'data-file': {
262 'driver': 'file',
274 echo "ERROR: qemu-io succeeded, so the data file was not flushed"
277 echo "Success: qemu-io failed, so the data file was flushed"
285 echo '=== Preallocation with data-file-raw ==='
288 echo '--- Using a non-zeroed data file ---'
290 # Using data-file-raw must enforce at least metadata preallocation so
291 # that it does not matter whether one reads the raw file or the qcow2
292 # file
294 # Pre-create the data file, write some data. Real-world use cases for
295 # this are adding a qcow2 metadata file to a block device (i.e., using
296 # the device as the data file) or adding qcow2 features to pre-existing
302 # clear the data file. Use the blockdev-create job instead, which will
303 # only format the qcow2 image file.
306 -blockdev file,node-name=data,filename="$TEST_IMG.data" \
307 -blockdev file,node-name=meta,filename="$TEST_IMG"
318 "file": "meta",
319 "data-file": "data",
320 "data-file-raw": true
333 # Reading from either the qcow2 file or the data file should return
344 # Append some new data to the raw file, then resize the qcow2 image
363 echo '--- Giving a backing file at runtime ---'
365 # qcow2 files with data-file-raw cannot have backing files given by
378 echo 'Comparing qcow2 image and raw data file:'
384 "driver=raw,file.filename=$TEST_IMG.data" \
385 "file.filename=$TEST_IMG,backing.file.filename=$TEST_IMG.base"