Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: preadv/pwritev returns ssize_t (8), which is greater then io_uring_cqe::res (__s32, 4) #6

Closed
CarterLi opened this issue Sep 20, 2019 · 2 comments

Comments

@CarterLi
Copy link
Contributor

Is it problematic? Will it result in type narrowing?

@CarterLi CarterLi changed the title Question: preadv/pwritev returns ssize_t (8), which is greater then io_uring_cqe::res (4) Question: preadv/pwritev returns ssize_t (8), which is greater then io_uring_cqe::res (__s32, 4) Sep 20, 2019
@axboe
Copy link
Owner

axboe commented Sep 20, 2019

IO operations are clamped at 2G in Linux, always have been. So the smaller type isn't an issue.

@CarterLi
Copy link
Contributor Author

I see. Thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants