Lines Matching refs:blocksize
50 blksize_t blocksize; in fill() local
54 blocksize = statbuf.st_blksize; in fill()
56 buf = malloc(blocksize); in fill()
61 blen = len < (off_t)blocksize ? len : blocksize; in fill()
93 blksize_t blocksize; in check_content_dealloc() local
95 blocksize = fd_get_blksize(); in check_content_dealloc()
96 if (blocksize == -1) in check_content_dealloc()
99 buf = malloc(blocksize * 2); in check_content_dealloc()
102 sblk = buf + blocksize; in check_content_dealloc()
104 memset(sblk, 0, blocksize); in check_content_dealloc()
115 blen = resid < (off_t)blocksize ? resid : blocksize; in check_content_dealloc()
128 memset(sblk, byte_to_fill, blocksize); in check_content_dealloc()
136 blen = resid < (off_t)blocksize ? resid : blocksize; in check_content_dealloc()
155 blen = resid < (off_t)blocksize ? resid : blocksize; in check_content_dealloc()
188 blksize_t blocksize; in ATF_TC_BODY() local
191 ATF_REQUIRE((blocksize = fd_get_blksize()) != -1); in ATF_TC_BODY()
192 range.r_offset = offset = blocksize; in ATF_TC_BODY()
193 range.r_len = length = (file_max_blocks - 1) * blocksize - in ATF_TC_BODY()
198 ATF_REQUIRE(fill(fd, 0, file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
201 file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
213 blksize_t blocksize; in ATF_TC_BODY() local
216 ATF_REQUIRE((blocksize = fd_get_blksize()) != -1); in ATF_TC_BODY()
217 range.r_offset = offset = blocksize / 2; in ATF_TC_BODY()
218 range.r_len = length = (file_max_blocks - 1) * blocksize + in ATF_TC_BODY()
219 blocksize / 2 - offset; in ATF_TC_BODY()
223 ATF_REQUIRE(fill(fd, 0, file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
226 file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
238 blksize_t blocksize; in ATF_TC_BODY() local
241 ATF_REQUIRE((blocksize = fd_get_blksize()) != -1); in ATF_TC_BODY()
242 range.r_offset = offset = blocksize; in ATF_TC_BODY()
247 ATF_REQUIRE(fill(fd, 0, file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
250 file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
262 blksize_t blocksize; in ATF_TC_BODY() local
265 ATF_REQUIRE((blocksize = fd_get_blksize()) != -1); in ATF_TC_BODY()
266 range.r_offset = offset = blocksize / 2; in ATF_TC_BODY()
271 ATF_REQUIRE(fill(fd, 0, file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
274 file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
286 blksize_t blocksize; in ATF_TC_BODY() local
289 ATF_REQUIRE((blocksize = fd_get_blksize()) != -1); in ATF_TC_BODY()
290 range.r_offset = offset = blocksize; in ATF_TC_BODY()
291 range.r_len = length = (file_max_blocks + 1) * blocksize - in ATF_TC_BODY()
296 ATF_REQUIRE(fill(fd, 0, file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
299 file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
311 blksize_t blocksize; in ATF_TC_BODY() local
314 ATF_REQUIRE((blocksize = fd_get_blksize()) != -1); in ATF_TC_BODY()
315 range.r_offset = offset = blocksize / 2; in ATF_TC_BODY()
316 range.r_len = length = file_max_blocks * blocksize + blocksize / 2 - in ATF_TC_BODY()
321 ATF_REQUIRE(fill(fd, 0, file_max_blocks * blocksize) == 0); in ATF_TC_BODY()
324 file_max_blocks * blocksize) == 0); in ATF_TC_BODY()