Lines Matching refs:fallocate
62 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size);
63 TEST_ASSERT(!ret, "fallocate with aligned offset and size should succeed");
65 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
67 TEST_ASSERT(ret, "fallocate with unaligned offset should fail");
69 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size);
70 TEST_ASSERT(ret, "fallocate beginning at total_size should fail");
72 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size);
73 TEST_ASSERT(ret, "fallocate beginning after total_size should fail");
75 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
77 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) at total_size should succeed");
79 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
81 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) after total_size should succeed");
83 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
85 TEST_ASSERT(ret, "fallocate with unaligned size should fail");
87 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
89 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) with aligned offset and size should succeed");
91 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, page_size, page_size);
92 TEST_ASSERT(!ret, "fallocate to restore punched hole should succeed");
117 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,