Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/piaoxuebingfeng/liburing:
  fix io_uring-test read 4K file error
  • Loading branch information
axboe committed Oct 26, 2023
2 parents 45ed5c6 + e399746 commit caf7086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/io_uring-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int main(int argc, char *argv[])
io_uring_prep_readv(sqe, fd, &iovecs[i], 1, offset);
offset += iovecs[i].iov_len;
i++;
if (offset > sb.st_size)
if (offset >= sb.st_size)
break;
} while (1);

Expand Down

0 comments on commit caf7086

Please sign in to comment.