Searched refs:blk2 (Results 1 – 4 of 4) sorted by relevance
| /openbmc/qemu/tests/unit/ |
| H A D | test-image-locking.c | 78 BlockBackend *blk1, *blk2, *blk3; in test_image_locking_basic() local 93 blk2 = open_image(img_path, perm | BLK_PERM_RESIZE, shared_perm, NULL); in test_image_locking_basic() 94 g_assert(blk2); in test_image_locking_basic() 101 blk_unref(blk2); in test_image_locking_basic() 119 BlockBackend *blk1, *blk2; in test_set_perm_abort() local 131 blk2 = open_image(img_path, perm, shared_perm, &error_abort); in test_set_perm_abort() 132 g_assert(blk2); in test_set_perm_abort() 137 r = blk_set_perm(blk2, perm | BLK_PERM_RESIZE, BLK_PERM_WRITE_UNCHANGED, in test_set_perm_abort() 142 blk_unref(blk2); in test_set_perm_abort()
|
| H A D | test-throttle.c | 740 BlockBackend *blk1, *blk2, *blk3; in test_groups() local 746 blk2 = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_groups() 750 blkp2 = blk_get_public(blk2); in test_groups() 762 throttle_group_register_tgm(tgm2, "foo", blk_get_aio_context(blk2)); in test_groups()
|
| /openbmc/qemu/ |
| H A D | qemu-img.c | 1340 BlockBackend *blk1, *blk2; in img_compare() local 1470 blk2 = img_open(image_opts, filename2, fmt2, flags, writethrough, quiet, in img_compare() 1472 if (!blk2) { in img_compare() 1477 bs2 = blk_bs(blk2); in img_compare() 1480 buf2 = blk_blockalign(blk2, IO_BUF_SIZE); in img_compare() 1488 total_size2 = blk_getlength(blk2); in img_compare() 1555 ret = blk_pread(blk2, offset, chunk, buf2, 0); in img_compare() 1577 ret = check_empty_sectors(blk2, offset, chunk, in img_compare() 1597 blk_over = blk2; in img_compare() 1631 blk_unref(blk2); in img_compare() [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 041 | 1123 blk2 = { 'node-name': 'dest-ro', 1130 self.vm.add_blockdev(self.vm.qmp_to_opts(blk2))
|