Lines Matching refs:BLK_SIZE
54 #define BLK_SIZE 1024 in do_test_with_offset() macro
55 char bwrite[BLK_SIZE] = { 0xf0 }; in do_test_with_offset()
56 char bread[BLK_SIZE]; in do_test_with_offset()
61 ret = fallocate (temp_fd, 0, offset, BLK_SIZE); in do_test_with_offset()
75 if (finfo.st_size < (offset + BLK_SIZE)) in do_test_with_offset()
77 (long long unsigned int)offset + BLK_SIZE); in do_test_with_offset()
82 if (write (temp_fd, bwrite, BLK_SIZE) != BLK_SIZE) in do_test_with_offset()
83 FAIL_EXIT1 ("fail trying to write " XSTR (BLK_SIZE) " bytes"); in do_test_with_offset()
88 if (read (temp_fd, bread, BLK_SIZE) != BLK_SIZE) in do_test_with_offset()
89 FAIL_EXIT1 ("fail trying to read " XSTR (BLK_SIZE) " bytes"); in do_test_with_offset()
91 if (memcmp (bwrite, bread, BLK_SIZE) != 0) in do_test_with_offset()