• Home
  • Raw
  • Download

Lines Matching refs:tf

91   TemporaryFile tf;  in TEST()  local
100 EXPECT_EQ(EINVAL, posix_fadvise(tf.fd, 0, 0, -1)); in TEST()
103 EXPECT_EQ(EINVAL, posix_fadvise64(tf.fd, 0, 0, -1)); in TEST()
106 EXPECT_EQ(0, posix_fadvise(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST()
107 EXPECT_EQ(0, posix_fadvise64(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST()
111 TemporaryFile tf; in TEST() local
117 ASSERT_EQ(-1, fallocate(tf.fd, 0, 0, -1)); in TEST()
121 ASSERT_EQ(-1, fallocate64(tf.fd, 0, 0, -1)); in TEST()
125 ASSERT_EQ(EINVAL, posix_fallocate(tf.fd, 0, -1)); in TEST()
129 ASSERT_EQ(EINVAL, posix_fallocate64(tf.fd, 0, -1)); in TEST()
134 TemporaryFile tf; in TEST() local
136 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
140 ASSERT_EQ(0, fallocate(tf.fd, 0, 0, 1)); in TEST()
141 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
144 ASSERT_EQ(0, fallocate64(tf.fd, 0, 0, 2)); in TEST()
145 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
149 ASSERT_EQ(0, posix_fallocate(tf.fd, 0, 3)); in TEST()
150 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
153 ASSERT_EQ(0, posix_fallocate64(tf.fd, 0, 4)); in TEST()
154 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
193 TemporaryFile tf; in TEST() local
198 …ssize_t bytes_written = splice(pipe_fds[0], nullptr, tf.fd, nullptr, bytes_read, SPLICE_F_MORE | S… in TEST()
283 TemporaryFile tf; in TEST() local
284 ASSERT_EQ(0, sync_file_range(tf.fd, 0, 0, 0)); in TEST()
289 ASSERT_EQ(-1, sync_file_range(tf.fd, 0, 0, ~0)); in TEST()
312 TemporaryFile tf; in TEST() local
314 ASSERT_EQ(0, fstatfs(tf.fd, &sfs)); in TEST()
316 ASSERT_EQ(-1, fallocate(tf.fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, 1)); in TEST()