Searched refs:blksz (Results 1 – 1 of 1) sorted by relevance
/systemd-251/src/test/ |
D | test-copy.c | 329 off_t blksz; in TEST_RET() local 345 blksz = stat.st_blksize; in TEST_RET() 346 buf = alloca_safe(blksz); in TEST_RET() 347 memset(buf, 1, blksz); in TEST_RET() 352 assert_se(lseek(fd, blksz, SEEK_CUR) >= 0); in TEST_RET() 353 assert_se(write(fd, buf, blksz) >= 0); in TEST_RET() 354 assert_se(lseek(fd, 0, SEEK_END) == 2 * blksz); in TEST_RET() 356 assert_se(ftruncate(fd, 3 * blksz) >= 0); in TEST_RET() 364 assert_se(lseek(fd_copy, 0, SEEK_DATA) == blksz); in TEST_RET() 365 assert_se(lseek(fd_copy, blksz, SEEK_HOLE) == 2 * blksz); in TEST_RET() [all …]
|