-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add support for fallocate
and statx
#214
Add support for fallocate
and statx
#214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me. @Noah-Kennedy ? (I have not experience with fallocate or statx.)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice comments and thanks for the unit test too.
I've run the tests cases on my hardware (AMD EPYCs running Ubuntu 22.04) , if thats what you mean. I've not yet integrated this into the code I was porting though. |
This PR adds support for both the
IORING_OP_FALLOCATE
and theIORING_OP_STATX
opcodes, and extendsFile
to exposefallocate()
andstatx()
methods.A basic test which uses both
fallocate
andstatx
is included as well.