Lines Matching +full:0 +full:xa2

46     total_io_cmds = 0
49 qemu_img('create', '-f', iotests.imgfmt, hd_path[0], '3M')
50 qemu_img('create', '-f', iotests.imgfmt, '-b', hd_path[0],
53 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0xa0 0 1M', hd_path[0])
54 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0xa1 1M 1M', hd_path[1])
55 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0xa2 2M 1M', hd_path[2])
62 os.remove(hd_path[0])
79 found = 0
138 opts = hd_opts(0)
151 …self.reopen(opts, {'node-name': None}, "Invalid parameter type for 'options[0].node-name', expecte…
154 …self.reopen(opts, {'driver': None}, "Invalid parameter type for 'options[0].driver', expected: str…
163 …self.reopen(opts, {'file.filename': None}, "Invalid parameter type for 'options[0].file.filename',…
189 if node['drv'] == iotests.imgfmt and node['file'] == hd_path[0]:
200 'filename': hd_path[0]}}
218 qemu_io('-f', 'raw', '-t', 'none', '-c', 'quit', hd_path[0])
228 opts['backing'] = hd_opts(0)
304 self.vm.cmd('blockdev-add', conv_keys = False, **hd_opts(0))
308 self.assert_qmp(self.get_node('hd1'), 'image/backing-image/filename', hd_path[0])
311 self.reopen(hd_opts(0), {'read-only': True})
330 'filename': hd_path[0],
335 qemu_img('create', '-f', 'raw', hd_path[0], '2M')
336 qemu_io('-f', 'raw', '-c', 'write -P 0xa0 0 1M', hd_path[0])
337 qemu_io('-f', 'raw', '-c', 'write -P 0xa1 1M 1M', hd_path[0])
342 # Read 1MB from offset 0
343 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
348 self.run_qemu_io("hd0", "read -P 0xa1 0 1M")
353 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
364 'filename': hd_path[0],
401 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
402 self.run_qemu_io("hd0", "read -P 0 1M 1M")
403 self.run_qemu_io("hd0", "read -P 0 2M 1M")
406 self.reopen(opts[0], {'backing': 'hd1'})
408 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
409 self.run_qemu_io("hd0", "read -P 0xa1 1M 1M")
410 self.run_qemu_io("hd0", "read -P 0 2M 1M")
415 self.run_qemu_io("hd2", "read -P 0 0 1M")
416 self.run_qemu_io("hd2", "read -P 0xa1 1M 1M")
417 self.run_qemu_io("hd2", "read -P 0xa2 2M 1M")
420 self.reopen(opts[0], {'backing': 'hd2'})
422 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
423 self.run_qemu_io("hd0", "read -P 0xa1 1M 1M")
424 self.run_qemu_io("hd0", "read -P 0xa2 2M 1M")
429 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
430 self.run_qemu_io("hd0", "read -P 0 1M 1M")
431 self.run_qemu_io("hd0", "read -P 0xa2 2M 1M")
435 self.reopen(opts[0], {'backing': 'hd1'})
437 self.run_qemu_io("hd0", "read -P 0xa0 0 1M")
438 self.run_qemu_io("hd0", "read -P 0xa1 1M 1M")
439 self.run_qemu_io("hd0", "read -P 0xa2 2M 1M")
446 self.reopen(opts[0], {'backing': 'hd2'})
448 self.run_qemu_io("hd1", "read -P 0 0 1M")
449 self.run_qemu_io("hd1", "read -P 0xa1 1M 1M")
450 self.run_qemu_io("hd1", "read -P 0xa2 2M 1M")
465 self.run_qemu_io("hd1", "read -P 0 0 1M")
466 self.run_qemu_io("hd1", "read -P 0xa1 1M 1M")
467 self.run_qemu_io("hd1", "read -P 0 2M 1M")
474 self.run_qemu_io("hd1", "read -P 0 0 1M")
475 self.run_qemu_io("hd1", "read -P 0xa1 1M 1M")
476 self.run_qemu_io("hd1", "read -P 0 2M 1M")
492 self.reopen(opts[0], {'backing': 'hd1'})
511 self.reopen(opts[0])
528 self.reopen(opts[0], {'backing': 'bv'},
537 qemu_img('create', '-f', 'raw', hd_path[0], '10k')
540 hd0_opts = {'driver': 'file', 'node-name': 'hd0-file', 'filename': hd_path[0] }
552 self.run_qemu_io("hd", "read -P 0 0 10k")
553 self.run_qemu_io("hd", "write -P 0xa0 0 10k")
557 self.run_qemu_io("hd", "read -P 0 0 10k")
558 self.run_qemu_io("hd", "write -P 0xa1 0 10k")
562 self.run_qemu_io("hd", "read -P 0xa0 0 10k")
566 self.run_qemu_io("hd", "read -P 0xa1 0 10k")
571 hd0_opts = hd_opts(0)
595 opts = {'driver': 'raw', 'node-name': 'hd', 'file': hd_opts(0), 'discard': 'unmap'}
606 self.run_qemu_io("hd", "write -z -u 0 128k")
609 self.run_qemu_io("hd", "write -P 0xa0 0 64k")
614 self.run_qemu_io("hd", "write -P 0xa1 64k 64k")
619 self.run_qemu_io("hd", "write -P 0xa2 128k 64k")
622 self.run_qemu_io("hd", "read -P 0xa0 0 64k")
623 self.run_qemu_io("hd", "read -P 0xa1 64k 64k")
624 self.run_qemu_io("hd", "read -P 0xa2 128k 64k")
629 # the second one is compressed (0x40) while the others are not (0x80)
630 iotests.qemu_io('-f', 'raw', '-c', 'read -P 0x80 0x40000 1',
631 '-c', 'read -P 0x40 0x40008 1',
632 '-c', 'read -P 0x80 0x40010 1', hd_path[0])
637 opts0 = hd_opts(0)
644 self.run_qemu_io("hd0", "write -P 0xa0 0 1k")
645 self.run_qemu_io("hd2", "write -P 0xa2 0 1k")
648 self.run_qemu_io("hd0", "read -P 0xa0 0 1k")
649 self.run_qemu_io("hd2", "read -P 0xa2 0 1k")
669 self.run_qemu_io("hd0", "read -P 0xa2 0 1k")
670 self.run_qemu_io("hd2", "read -P 0xa0 0 1k")
676 self.run_qemu_io("hd0", "read -P 0xa0 0 1k")
677 self.run_qemu_io("hd2", "read -P 0xa2 0 1k")
703 self.reopen(hd_opts(0), {'backing': 'quorum0'},
720 'image': hd_opts(0)}
755 opts = hd_opts(0)
786 'throttle-group': 'group0', 'file': hd_opts(0) }
832 opts = hd_opts(0)
885 opts = hd_opts(0)
912 opts = hd_opts(0)
939 opts = hd_opts(0)
974 opts = hd_opts(0)
997 opts = hd_opts(0)
1031 opts = hd_opts(0)
1059 opts = hd_opts(0)
1085 opts = opts_a or hd_opts(0)
1103 share_rw=True, bus="scsi0.0")
1107 share_rw=True, bus="scsi1.0")
1154 for idx in (0, 2)
1158 opts[0], opts[1])