Skip to content

Commit

Permalink
fix io_uring-test read 4K file error
Browse files Browse the repository at this point in the history
  • Loading branch information
piaoxuebingfeng committed Oct 20, 2023
1 parent 45ed5c6 commit c6abced
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 c6abced

Please sign in to comment.