Lines Matching defs:offset

304 int Sdsptr;			/* sds offset (always 0)                */
346 int listio_mem(struct io_req *req, int offset, int fmstride,
405 char *doio_pat_check(char *buf, int offset, int length,
407 char *check_file(char *file, int offset, int length, char *pattern,
1306 sprintf(cp, " read done at file offset %d\n",
1319 " write done at file offset %d - pattern is %s\n",
1334 sprintf(cp, " reada done at file offset %d\n",
1354 " writea done at file offset %d - pattern is %s\n",
1406 int fd, offset, nbytes, oflags, rval;
1418 * r_nbytes are at the same offset in the read_req and reada_req
1424 offset = req->r_data.read.r_offset;
1427 /*printf("read: %s, %#o, %d %d\n", file, oflags, offset, nbytes); */
1462 * if io is not raw, bump the offset by a random amount
1504 if (lseek(fd, offset, SEEK_SET) == -1) {
1507 fd, offset, SYSERR, errno);
1535 if (lseek(fd, offset, SEEK_SET) == -1) {
1538 fd, offset, SYSERR, errno);
1603 off_t offset, woffset;
1622 offset = req->r_data.write.r_offset;
1627 /*printf("pwrite: %s, %#o, %d %d\n", file, oflags, offset, nbytes); */
1644 fd, file, oflags, offset, nbytes); */
1687 * if io is not raw, bump the offset by a random amount
1744 if (lock_file_region(file, fd, F_WRLCK, offset, nbytes) < 0) {
1767 wrec.w_offset = offset;
1794 if (lseek(fd, offset, SEEK_SET) == -1) {
1797 fd, offset, SYSERR, errno);
1814 offset,
1823 offset, nbytes % 4096, oflags);
1843 if (lseek(fd, offset, SEEK_SET) == -1) {
1846 fd, offset, SYSERR, errno);
1910 msg = check_file(file, offset, nbytes, Pattern, Pattern_Length,
1946 if (lock_file_region(file, fd, F_UNLCK, offset, nbytes) < 0) {
1970 "fcntl(%d, %d, %#o) failed for file %s, lock type %d, offset %d, length %d: %s (%d), open flags: %#o\n",
2089 long offset, woffset;
2455 " write done at file offset %d - pattern is %c (%#o)\n",
2460 cp += sprintf(cp, " read done at file offset %d\n",
2486 " RAW I/O: offset %% 4096 = %d length %% 4096 = %d\n",
2513 " DIRECT I/O: offset %% %d = %d length %% %d = %d\n",
2533 int offset, nbytes, nstrides, nents, aio_strat;
2542 * r_nbytes are at the same offset in the read_req and reada_req
2545 offset = req->r_data.io.r_offset;
2574 for (l = lio_req, a = addr, o = offset, i = 0;
2610 int listio_mem(struct io_req *req, int offset, int fmstride, int *min, int *max)
2614 size = stride_bounds(offset, fmstride,
3058 int fd, offset, nbytes, nstrides, nents, oflags;
3079 * r_nbytes are at the same offset in the read_req and reada_req
3084 offset = req->r_data.io.r_offset;
3202 * if io is not raw, bump the offset by a random amount
3248 (*sy->sy_buffer) (req, offset, 0, &min_byte, &max_byte);
3250 min_byte = offset;
3251 max_byte = offset + (nbytes * nstrides * nents);
3261 offset, min_byte, max_byte);
3285 wrec.w_offset = offset;
3444 msg = check_file(file, offset, nbytes * nstrides * nents,
3498 int fd, oflags, offset, nbytes;
3507 * r_nbytes are at the same offset in the read_req and reada_req
3512 offset = req->r_data.io.r_offset;
3517 flk.l_start = offset;
3534 min_byte = offset;
3535 max_byte = offset + nbytes;
3542 offset, min_byte, max_byte);
3608 * r_nbytes are at the same offset in the read_req and reada_req
3643 char *doio_pat_check(char *buf, int offset, int length, char *pattern,
3673 "corrupt bytes starting at file offset %d\n",
3674 offset + (int)(cp - buf));
3722 * Check the contents of a file beginning at offset, for length bytes. It
3736 char *check_file(char *file, int offset, int length, char *pattern,
3766 if (lseek(fd, offset, SEEK_SET) == -1) {
3768 "Could not lseek to offset %d in %s for verification: %s (%d)\n",
3769 offset, file, SYSERR, errno);
3804 (*Data_Check) (buf, offset, length, pattern, pattern_length,
3810 file, offset, length, pattern, pattern_length,