/external/ltp/testcases/kernel/io/direct_io/ |
diotest3.c | 94 int runtest(int fd_r, int fd_w, int childnum, int action) 131 if (lseek(fd_r, seekoff, SEEK_SET) < 0) { 132 tst_resm(TFAIL | TERRNO, "lseek(fd_r, ..) failed"); 135 if (read(fd_r, buf2, bufsize) < bufsize) { 154 int fd_w, fd_r; local 164 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { 171 if (runtest(fd_r, fd_w, childnum, action) == -1) { 175 close(fd_r); 186 if ((fd_r = open(filename, O_RDONLY, 0666)) < 0) { 187 tst_resm(TFAIL, "fd_r open failed for %s: %s" [all...] |
diotest6.c | 85 int runtest(int fd_r, int fd_w, int childnum, int action) 125 if (lseek(fd_r, seekoff, SEEK_SET) < 0) { 131 if ((ret = read(fd_r, buf2, bufsize)) < bufsize) { 149 int fd_w, fd_r; local 158 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { 159 tst_resm(TFAIL, "fd_r open failed for %s: %s", 165 if (runtest(fd_r, fd_w, childnum, action) == -1) { 169 close(fd_r); 180 if ((fd_r = open(filename, O_RDONLY, 0666)) < 0) { 181 tst_resm(TFAIL, "fd_r open failed for %s: %s" [all...] |
diotest2.c | 77 int runtest(int fd_r, int fd_w, int iter, off64_t offset, int action) 105 if (lseek(fd_r, offset + iter * bufsize, SEEK_SET) < 0) { 110 if (read(fd_r, buf2, bufsize) < bufsize) { 142 int i, action, fd_r, fd_w; local 187 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) 190 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { 197 close(fd_r); 206 if ((fd_r = open(filename, O_RDONLY | O_CREAT, 0666)) == -1) 209 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { 216 close(fd_r); [all...] |
diotest5.c | 85 int runtest(int fd_r, int fd_w, int iter, off64_t offset, int action) 131 if (lseek(fd_r, offset, SEEK_SET) < 0) { 136 if (readv(fd_r, iov2, nvector) < 0) { 173 int i, action, fd_r, fd_w; local 224 if ((fd_r = open64(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { 225 tst_brkm(TBROK, cleanup, "fd_r open failed for %s: %s", 228 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { 236 close(fd_r); 246 if ((fd_r = open64(filename, O_RDONLY | O_CREAT, 0666)) < 0) { 247 tst_brkm(TBROK, cleanup, "fd_r open failed for %s: %s" [all...] |