Lines Matching defs:test_size
178 size_t test_size;
210 test_size = (size_t)blk_size * NUM_TEST_BLKS;
211 read_buf = pagealign_alloc(test_size);
212 write_buf = pagealign_alloc(test_size);
238 init_test_buf(write_buf, cur_blk, test_size);
240 if (do_write(fd, write_buf, cur_blk * blk_size, test_size) !=
241 (ssize_t)test_size) {
245 if (do_read(fd, read_buf, cur_blk * blk_size, test_size) !=
246 (ssize_t)test_size) {
251 if (memcmp(write_buf, read_buf, test_size)) {
255 dump_hex(write_buf, test_size);
257 dump_hex(read_buf, test_size);
267 pagealign_free(read_buf, test_size);
269 pagealign_free(write_buf, test_size);