Lines Matching defs:offset
31 * The bufsize should be in n*4k size for direct readv, writev. The offset
33 * write and read. (Using larger offset, larger files can be tested).
39 * diotest5 [-b bufsize] [-o offset] [-i iterations]
78 static off_t offset = 0; /* Start offset. Default 0 */
85 int runtest(int fd_r, int fd_w, int iter, off_t offset, int action)
122 if (lseek(fd_w, offset, SEEK_SET) < 0) {
131 if (lseek(fd_r, offset, SEEK_SET) < 0) {
161 "Usage: diotest5 [-b bufsize] [-o offset] [ -i iteration] [ -v nvector] [-f filename]\n");
188 if ((offset = atoll(optarg)) <= 0) {
189 fprintf(stderr, "offset must be > 0");
225 if (runtest(fd_r, fd_w, iter, offset, action) < 0) {
247 if (runtest(fd_r, fd_w, iter, offset, action) < 0) {
268 if (runtest(fd_r, fd_w, iter, offset, action) < 0) {