Searched refs:blk2 (Results 1 – 4 of 4) sorted by relevance
/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()
|
/qemu/ |
H A D | qemu-img.c | 1361 BlockBackend *blk1, *blk2; in img_compare() local 1477 if (!blk2) { in img_compare() 1482 bs2 = blk_bs(blk2); in img_compare() 1485 buf2 = blk_blockalign(blk2, IO_BUF_SIZE); in img_compare() 1493 total_size2 = blk_getlength(blk2); in img_compare() 1602 blk_over = blk2; in img_compare() 1636 blk_unref(blk2); in img_compare() 5080 BlockBackend *blk1 = NULL, *blk2 = NULL; in img_dd() local 5271 if (!blk2) { in img_dd() 5300 ret = blk_pwrite(blk2, out_pos, bytes, in.buf, 0); in img_dd() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 041 | 1125 blk2 = { 'node-name': 'dest-ro', 1132 self.vm.add_blockdev(self.vm.qmp_to_opts(blk2))
|