Lines Matching refs:test_size
179 size_t test_size;
211 test_size = (size_t)blk_size * NUM_TEST_BLKS;
212 read_buf = pagealign_alloc(test_size);
213 write_buf = pagealign_alloc(test_size);
239 init_test_buf(write_buf, cur_blk, test_size);
241 if (do_write(fd, write_buf, cur_blk * blk_size, test_size) !=
242 (ssize_t)test_size) {
246 if (do_read(fd, read_buf, cur_blk * blk_size, test_size) !=
247 (ssize_t)test_size) {
252 if (memcmp(write_buf, read_buf, test_size)) {
256 dump_hex(write_buf, test_size);
258 dump_hex(read_buf, test_size);
268 pagealign_free(read_buf, test_size);
270 pagealign_free(write_buf, test_size);