/qemu/tests/qemu-iotests/ |
H A D | 051.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
H A D | 142.out | 8 Testing: -drive file=TEST_DIR/t.qcow2,cache=none 12 Testing: -drive file=TEST_DIR/t.qcow2,cache=directsync 16 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback 20 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough 24 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe 28 Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value 29 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value: invalid cache option 44 cache.direct=on on file 58 cache.direct=on on backing-file 73 cache.writeback=off on file [all …]
|
H A D | 051.pc.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
H A D | 051 | 41 _supported_proto file 44 # it also will not support an external data file and compression type 85 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=,if=none,id=$device_id 86 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=on,if=none,id=$device_id 87 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=1234,if=none,id=$device_id 88 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=foo,if=none,id=$device_id 94 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt= 95 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=on 96 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=1234 97 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=foo [all …]
|
H A D | 267 | 42 _supported_proto file 95 run_test -drive driver=file,file="$TEST_IMG",if=none 96 run_test -drive driver=$IMGFMT,file="$TEST_IMG",if=none 97 run_test -drive driver=$IMGFMT,file="$TEST_IMG",if=none -device virtio-blk,drive=none0 103 run_test -drive driver=file,file="$TEST_IMG",if=virtio 104 run_test -drive driver=$IMGFMT,file="$TEST_IMG",if=virtio 110 run_test -blockdev driver=file,filename="$TEST_IMG",node-name=file 111 run_test -blockdev driver=file,filename="$TEST_IMG",node-name=file \ 112 -blockdev driver=$IMGFMT,file=file,node-name=fmt 113 run_test -blockdev driver=file,filename="$TEST_IMG",node-name=file \ [all …]
|
H A D | 232.out | 6 NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 7 NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 8 NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 10 NODE_NAME: TEST_DIR/t.IMGFMT (file) 11 NODE_NAME: TEST_DIR/t.IMGFMT (file) 12 NODE_NAME: TEST_DIR/t.IMGFMT (file) 14 NODE_NAME: TEST_DIR/t.IMGFMT (file) 15 NODE_NAME: TEST_DIR/t.IMGFMT (file) 16 NODE_NAME: TEST_DIR/t.IMGFMT (file) 20 NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) [all …]
|
H A D | 232 | 44 _supported_proto file 69 echo "info block -n" | run_qemu "$@" | grep -e "(file" -e "QEMU_PROG" 90 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on,auto-read-only=off 91 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on,auto-read-only=on 92 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on 94 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=off,auto-read-only=off 95 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=off,auto-read-only=on 96 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=off 98 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,auto-read-only=off 99 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,auto-read-only=on [all …]
|
H A D | 142 | 41 _supported_proto file 76 run_qemu -drive file="$TEST_IMG",cache=none 77 run_qemu -drive file="$TEST_IMG",cache=directsync 78 run_qemu -drive file="$TEST_IMG",cache=writeback 79 run_qemu -drive file="$TEST_IMG",cache=writethrough 80 run_qemu -drive file="$TEST_IMG",cache=unsafe 81 run_qemu -drive file="$TEST_IMG",cache=invalid_value 87 files="if=none,file=$TEST_IMG,backing.file.filename=$TEST_IMG.base" 88 …s="node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=fi… 92 # cache.direct is supposed to be inherited by both bs->file and [all …]
|
H A D | 267.out | 20 Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none 31 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none 42 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none -device virtio-blk,drive=none0 56 Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=virtio 67 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=virtio 81 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file 84 Error: Device 'file' is writable but does not support snapshots 88 Error: Device 'file' is writable but does not support snapshots 92 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,fi… 103 …blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=raw,file=file,node… [all …]
|
H A D | 228.out | 1 --- Implicit backing file --- 3 {"execute": "blockdev-add", "arguments": {"driver": "IMGFMT", "file": {"driver": "file", "filename"… 7 bs->backing_file: file:TEST_DIR/PID-base.img 13 --- change-backing-file --- 15 {"execute": "blockdev-add", "arguments": {"driver": "IMGFMT", "file": {"driver": "file", "filename"… 17 {"execute": "change-backing-file", "arguments": {"backing-file": "null-co://", "device": "node0", "… 20 …{"driver": "IMGFMT", "file": {"driver": "file", "filename": "TEST_DIR/PID-base.img"}}, "driver": "… 24 {"execute": "change-backing-file", "arguments": {"backing-file": "TEST_DIR/PID-base.img", "device":… 31 {"execute": "change-backing-file", "arguments": {"backing-file": "file:TEST_DIR/PID-base.img", "dev… 34 …{"driver": "IMGFMT", "file": {"driver": "file", "filename": "TEST_DIR/PID-base.img"}}, "driver": "… [all …]
|
H A D | 244 | 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:" [all …]
|
H A D | 224.out | 4 …file": {"driver": "file", "filename": "TEST_DIR/PID-base.img"}, "node-name": "base"}, "driver": "I… 6 …file\": {\"driver\": \"file\", \"filename\": \"TEST_DIR/PID-base.img\"}}", "device": "top", "job-i… 13 …file": {"driver": "file", "filename": "TEST_DIR/PID-base.img"}, "node-name": "base"}, "driver": "I… 15 …file\": {\"driver\": \"file\", \"filename\": \"TEST_DIR/PID-base.img\"}}", "device": "top", "filte…
|
H A D | 228 | 4 # Test for when a backing file is considered overridden (thus, a 28 # Need backing file and change-backing-file support 60 'file:' + base_img_path, '-F', iotests.imgfmt, 65 log('--- Implicit backing file ---') 71 file={ 72 'driver': 'file', 78 # not contain the "file:" prefix 84 log('--- change-backing-file ---') 90 file={ 91 'driver': 'file', [all …]
|
H A D | 099 | 47 _supported_proto file 61 # Get the "file": "foo" entry ($foo may only contain escaped double quotes, 65 | sed -e 's/^.*"file": "\(\(\\"\|[^"]\)*\)".*$/\1/' -e 's/\\"/"/g' 90 test_qemu "file=blkverify:$TEST_IMG.compare:$TEST_IMG" 97 test_qemu "file.driver=blkverify,file.raw.filename=$TEST_IMG.compare,file.test.file.filename=$TEST_… 103 # blkdebug cannot create a configuration file, therefore it is unable to 105 test_qemu "file.driver=blkdebug,file.image.filename=$TEST_IMG,file.inject-error.0.event=l1_update" 113 …emu "file.driver=blkverify,file.raw.filename=$TEST_IMG.compare,file.test.file.driver=blkdebug,file… 120 test_qemu "file.driver=blkdebug,file.config=$TEST_DIR/blkdebug.conf,file.image.filename=$TEST_IMG" 123 echo '=== Testing plain filename for blkdebug without configuration file ===' [all …]
|
H A D | 081 | 43 _supported_proto file 62 quorum="driver=raw,file.driver=quorum,file.vote-threshold=2" 63 quorum="$quorum,file.children.0.file.filename=$TEST_DIR/1.raw" 64 quorum="$quorum,file.children.1.file.filename=$TEST_DIR/2.raw" 65 quorum="$quorum,file.children.2.file.filename=$TEST_DIR/3.raw" 66 quorum="$quorum,file.children.0.driver=raw" 67 quorum="$quorum,file.children.1.driver=raw" 68 quorum="$quorum,file.children.2.driver=raw" 110 "file": { 111 "driver": "file", [all …]
|
H A D | 266.out | 1 --- Creating empty file --- 2 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen… 7 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node… 12 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file":… 19 file format: IMGFMT 23 --- Creating empty file --- 24 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen… 29 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node… 34 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file":… 41 file format: IMGFMT [all …]
|
H A D | 247 | 45 _supported_proto file fuse 50 echo "=== Try commit to backing file with auto-read-only ===" 70 -blockdev file,node-name=file-0,filename=$TEST_IMG.0,auto-read-only=on \ 71 -blockdev $IMGFMT,node-name=format-0,file=file-0,read-only=on \ 72 -blockdev file,node-name=file-1,filename=$TEST_IMG.1,auto-read-only=on \ 73 -blockdev $IMGFMT,node-name=format-1,file=file-1,read-only=on,backing=format-0 \ 74 -blockdev file,node-name=file-2,filename=$TEST_IMG.2,auto-read-only=on \ 75 -blockdev $IMGFMT,node-name=format-2,file=file-2,read-only=on,backing=format-1 \ 76 -blockdev file,node-name=file-3,filename=$TEST_IMG.3,auto-read-only=on \ 77 -blockdev $IMGFMT,node-name=format-3,file=file-3,read-only=on,backing=format-2 \ [all …]
|
H A D | 172 | 43 _supported_proto file 83 QEMU_OPTIONS="" do_run_qemu -drive if=none,file="$TEST_IMG" "$@" | 122 check_floppy_qtree -drive if=floppy,file="$TEST_IMG" 123 check_floppy_qtree -drive if=floppy,file="$TEST_IMG",index=1 124 check_floppy_qtree -drive if=floppy,file="$TEST_IMG" -drive if=floppy,file="$TEST_IMG.2",index=1 130 check_floppy_qtree -drive if=none,file="$TEST_IMG" -device floppy,drive=none0 131 check_floppy_qtree -drive if=none,file="$TEST_IMG" -device floppy,drive=none0,unit=1 132 check_floppy_qtree -drive if=none,file="$TEST_IMG" -drive if=none,file="$TEST_IMG.2" \ 140 check_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -global floppy.drive=none0 147 check_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0 [all …]
|
H A D | 206.out | 3 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen… 8 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2", "no… 10 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file… 16 file format: IMGFMT 29 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen… 34 …: "job0", "options": {"cluster-size": 65536, "driver": "qcow2", "file": {"driver": "file", "filena… 40 file format: IMGFMT 53 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen… 58 …"job0", "options": {"cluster-size": 2097152, "driver": "qcow2", "file": {"driver": "file", "filena… 64 file format: IMGFMT [all …]
|
H A D | 206 | 4 # Test qcow2 and file image creation 28 supported_protocols=['file']) 46 vm.blockdev_create({ 'driver': 'file', 52 driver='file', filename=disk_path, 56 'file': 'imgfile', 72 vm.blockdev_create({ 'driver': 'file', 79 'file': { 80 'driver': 'file', 103 vm.blockdev_create({ 'driver': 'file', 110 'file': { [all …]
|
/qemu/scripts/ |
H A D | analyze-migration.py | 38 self.file = open(self.filename, "rb") 41 return int.from_bytes(self.file.read(8), byteorder='big', signed=False) 44 return int.from_bytes(self.file.read(4), byteorder='big', signed=False) 47 return int.from_bytes(self.file.read(2), byteorder='big', signed=False) 50 return int.from_bytes(self.file.read(1), byteorder='big', signed=True) 60 value = self.file.read(size) 62 raise Exception("Unexpected end of %s at 0x%x" % (self.filename, self.file.tell())) 66 return self.file.tell() 69 return self.file.seek(a, b) 71 # The VMSD description is at the end of the file, after EOF. Look for [all …]
|
/qemu/tests/qemu-iotests/tests/ |
H A D | vvfat | 50 with open(os.path.join(filesystem, f"file{i}.txt"), 188 self.assertEqual(len(root_dir), 13) # 12 + 1 special file 191 "QEMU VVF.AT": 0, # special empty file 233 file = fat16.find_direntry(f"/FILE{i}.TXT") 234 self.assertIsNotNone(file) 236 fat16.read_file(file), f"Hello, world! {i}\n".encode("ascii") 251 Similar to `test_write_file_in_same_content`, but we write the file 257 file = fat16.find_direntry("/FILE0.TXT") 258 self.assertIsNotNone(file) 260 data = fat16.read_cluster(file.cluster) [all …]
|
/qemu/docs/system/ |
H A D | device-url-syntax.rst.inc | 2 In addition to using normal file images for the emulated storage 16 the command line or a configuration file. 30 -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1 36 |qemu_system| -drive file=iscsi://user%password@192.0.2.1/iqn.2001-04.com.example/1 44 |qemu_system| -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1 67 |qemu_system| --drive file=nbd:192.0.2.1:30000 73 |qemu_system| --drive file=nbd:unix:/tmp/nbd-socket 82 |qemu_system| -drive file=ssh://user@host/path/to/disk.img 83 …|qemu_system| -drive file.driver=ssh,file.user=user,file.host=host,file.port=22,file.path=/path/to… 89 GlusterFS is a user space distributed file system. QEMU supports the [all …]
|
/qemu/chardev/ |
H A D | char-file.c | 42 ChardevFile *file = backend->u.file.data; in qmp_chardev_open_file() local 48 if (file->in) { in qmp_chardev_open_file() 49 error_setg(errp, "input file not supported"); in qmp_chardev_open_file() 53 if (file->has_append && file->append) { in qmp_chardev_open_file() 54 /* Append to file if it already exists. */ in qmp_chardev_open_file() 58 /* Truncate file if it already exists. */ in qmp_chardev_open_file() 63 out = CreateFile(file->out, accessmode, FILE_SHARE_READ, NULL, flags, in qmp_chardev_open_file() 66 error_setg(errp, "open %s failed", file->out); in qmp_chardev_open_file() 75 if (file->has_append && file->append) { in qmp_chardev_open_file() 81 out = qmp_chardev_open_file_source(file->out, flags, errp); in qmp_chardev_open_file() [all …]
|
/qemu/tests/qtest/migration/ |
H A D | file-tests.c | 2 * QTest testcases for migration to file 9 * See the COPYING file in the top-level directory. 25 g_autofree char *uri = g_strdup_printf("file:%s/%s", tmpfs, in test_precopy_file() 36 static void fdset_add_fds(QTestState *qts, const char *file, int flags, in fdset_add_fds() argument 49 fd = open(file, flags, 0660); in fdset_add_fds() 61 g_autofree char *file = g_strdup_printf("%s/%s", tmpfs, FILE_TEST_FILENAME); in migrate_hook_start_file_offset_fdset() local 63 fdset_add_fds(from, file, O_WRONLY, 1, false); in migrate_hook_start_file_offset_fdset() 64 fdset_add_fds(to, file, O_RDONLY, 1, false); in migrate_hook_start_file_offset_fdset() 71 g_autofree char *uri = g_strdup_printf("file:/dev/fdset/1,offset=%d", in test_precopy_file_offset_fdset() 85 g_autofree char *uri = g_strdup_printf("file:%s/%s,offset=%d", tmpfs, in test_precopy_file_offset() [all …]
|