Lines Matching +full:0 +full:x33

44 #define NOT_DONE 0x7fffffff
70 memset(pattern_buf, 0x00, count); in test_blk_read()
76 blk_aio_preadv(blk, offset, &qiov, 0, blk_rw_done, &async_ret); in test_blk_read()
82 g_assert(async_ret != 0); in test_blk_read()
84 g_assert(async_ret == 0); in test_blk_read()
87 cmp_buf, pattern_count) <= 0); in test_blk_read()
107 memset(pattern_buf, 0x00, count); in test_blk_write()
113 blk_aio_pwritev(blk, offset, &qiov, 0, blk_rw_done, &async_ret); in test_blk_write()
119 g_assert(async_ret != 0); in test_blk_write()
121 g_assert(async_ret == 0); in test_blk_write()
136 g_assert(fd >= 0); in make_temp()
217 /* read from 0 to IMG_SIZE */ in test_primary_read()
218 test_blk_read(blk, 0, 0, IMG_SIZE, 0, IMG_SIZE, true); in test_primary_read()
229 /* write from 0 to IMG_SIZE */ in test_primary_write()
230 test_blk_write(blk, 0, 0, IMG_SIZE, true); in test_primary_write()
243 /* read from 0 to IMG_SIZE */ in test_primary_start()
244 test_blk_read(blk, 0, 0, IMG_SIZE, 0, IMG_SIZE, true); in test_primary_start()
246 /* write 0x22 from 0 to IMG_SIZE */ in test_primary_start()
247 test_blk_write(blk, 0x22, 0, IMG_SIZE, false); in test_primary_start()
309 /* format s_local_disk with pattern "0x11" */ in start_secondary()
310 test_blk_write(blk, 0x11, 0, IMG_SIZE, false); in start_secondary()
366 /* read from 0 to IMG_SIZE */ in test_secondary_read()
367 test_blk_read(blk, 0, 0, IMG_SIZE, 0, IMG_SIZE, true); in test_secondary_read()
378 /* write from 0 to IMG_SIZE */ in test_secondary_write()
379 test_blk_write(blk, 0, 0, IMG_SIZE, true); in test_secondary_write()
393 /* read from s_local_disk (0, IMG_SIZE) */ in test_secondary_start()
394 test_blk_read(top_blk, 0x11, 0, IMG_SIZE, 0, IMG_SIZE, false); in test_secondary_start()
396 /* write 0x22 to s_local_disk (IMG_SIZE / 2, IMG_SIZE) */ in test_secondary_start()
398 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, IMG_SIZE / 2, false); in test_secondary_start()
401 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_start()
402 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_start()
404 /* write 0x33 to s_active_disk (0, IMG_SIZE / 2) */ in test_secondary_start()
405 test_blk_write(top_blk, 0x33, 0, IMG_SIZE / 2, false); in test_secondary_start()
407 /* read from s_active_disk (0, IMG_SIZE/2) */ in test_secondary_start()
408 test_blk_read(top_blk, 0x33, 0, IMG_SIZE / 2, in test_secondary_start()
409 0, IMG_SIZE / 2, false); in test_secondary_start()
426 /* write 0x22 to s_local_disk (IMG_SIZE / 2, IMG_SIZE) */ in test_secondary_stop()
428 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, IMG_SIZE / 2, false); in test_secondary_stop()
431 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_stop()
432 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_stop()
434 /* write 0x33 to s_active_disk (0, IMG_SIZE / 2) */ in test_secondary_stop()
435 test_blk_write(top_blk, 0x33, 0, IMG_SIZE / 2, false); in test_secondary_stop()
440 /* read from s_local_disk (0, IMG_SIZE / 2) */ in test_secondary_stop()
441 test_blk_read(top_blk, 0x33, 0, IMG_SIZE / 2, in test_secondary_stop()
442 0, IMG_SIZE / 2, false); in test_secondary_stop()
446 test_blk_read(top_blk, 0x22, IMG_SIZE / 2, in test_secondary_stop()
447 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_stop()
459 /* write 0x22 to s_local_disk (IMG_SIZE / 2, IMG_SIZE) */ in test_secondary_continuous_replication()
461 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, IMG_SIZE / 2, false); in test_secondary_continuous_replication()
464 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_continuous_replication()
465 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_continuous_replication()
467 /* write 0x33 to s_active_disk (0, IMG_SIZE / 2) */ in test_secondary_continuous_replication()
468 test_blk_write(top_blk, 0x33, 0, IMG_SIZE / 2, false); in test_secondary_continuous_replication()
484 /* read from s_local_disk (0, IMG_SIZE / 2) */ in test_secondary_continuous_replication()
485 test_blk_read(top_blk, 0x33, 0, IMG_SIZE / 2, in test_secondary_continuous_replication()
486 0, IMG_SIZE / 2, false); in test_secondary_continuous_replication()
490 test_blk_read(top_blk, 0x22, IMG_SIZE / 2, in test_secondary_continuous_replication()
491 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_continuous_replication()
504 /* write 0x22 to s_local_disk (IMG_SIZE / 2, IMG_SIZE) */ in test_secondary_do_checkpoint()
506 test_blk_write(local_blk, 0x22, IMG_SIZE / 2, in test_secondary_do_checkpoint()
510 test_blk_read(top_blk, 0x11, IMG_SIZE / 2, in test_secondary_do_checkpoint()
511 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_do_checkpoint()
515 /* after checkpoint, read pattern 0x22 from s_local_disk */ in test_secondary_do_checkpoint()
516 test_blk_read(top_blk, 0x22, IMG_SIZE / 2, in test_secondary_do_checkpoint()
517 IMG_SIZE / 2, 0, IMG_SIZE, false); in test_secondary_do_checkpoint()