Lines Matching refs:IMG_SIZE

22 #define IMG_SIZE (64 * 1024 * 1024)  macro
148 bdrv_img_create(p_local_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE, in prepare_imgs()
152 bdrv_img_create(s_local_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE, in prepare_imgs()
154 bdrv_img_create(s_active_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE, in prepare_imgs()
156 bdrv_img_create(s_hidden_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE, in prepare_imgs()
222 test_blk_read(blk, 0, 0, IMG_SIZE, 0, IMG_SIZE, true); in test_primary_read()
234 test_blk_write(blk, 0, 0, IMG_SIZE, true); in test_primary_write()
248 test_blk_read(blk, 0, 0, IMG_SIZE, 0, IMG_SIZE, true); in test_primary_start()
251 test_blk_write(blk, 0x22, 0, IMG_SIZE, false); in test_primary_start()
314 test_blk_write(blk, 0x11, 0, IMG_SIZE, false); in start_secondary()
378 test_blk_read(blk, 0, 0, IMG_SIZE, 0, IMG_SIZE, true); in test_secondary_read()
390 test_blk_write(blk, 0, 0, IMG_SIZE, true); in test_secondary_write()
405 test_blk_read(top_blk, 0x11, 0, IMG_SIZE, 0, IMG_SIZE, false); in test_secondary_start()
409 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, IMG_SIZE / 2, false); in test_secondary_start()
412 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_start()
413 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_start()
416 test_blk_write(top_blk, 0x33, 0, IMG_SIZE / 2, false); in test_secondary_start()
419 test_blk_read(top_blk, 0x33, 0, IMG_SIZE / 2, in test_secondary_start()
420 0, IMG_SIZE / 2, false); in test_secondary_start()
439 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, IMG_SIZE / 2, false); in test_secondary_stop()
442 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_stop()
443 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_stop()
446 test_blk_write(top_blk, 0x33, 0, IMG_SIZE / 2, false); in test_secondary_stop()
452 test_blk_read(top_blk, 0x33, 0, IMG_SIZE / 2, in test_secondary_stop()
453 0, IMG_SIZE / 2, false); in test_secondary_stop()
457 test_blk_read(top_blk, 0x22, IMG_SIZE / 2, in test_secondary_stop()
458 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_stop()
472 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, IMG_SIZE / 2, false); in test_secondary_continuous_replication()
475 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_continuous_replication()
476 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_continuous_replication()
479 test_blk_write(top_blk, 0x33, 0, IMG_SIZE / 2, false); in test_secondary_continuous_replication()
496 test_blk_read(top_blk, 0x33, 0, IMG_SIZE / 2, in test_secondary_continuous_replication()
497 0, IMG_SIZE / 2, false); in test_secondary_continuous_replication()
501 test_blk_read(top_blk, 0x22, IMG_SIZE / 2, in test_secondary_continuous_replication()
502 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_continuous_replication()
517 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, in test_secondary_do_checkpoint()
518 IMG_SIZE / 2, false); in test_secondary_do_checkpoint()
521 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_do_checkpoint()
522 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_do_checkpoint()
527 test_blk_read(top_blk, 0x22, IMG_SIZE / 2, in test_secondary_do_checkpoint()
528 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_do_checkpoint()