-
Notifications
You must be signed in to change notification settings - Fork 86
fix(driver,stub): compile #612
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
Conversation
George-Miao
left a comment
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.
LGTM
|
Oh, I set the wrong features for stub test. |
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.
Pull request overview
This PR fixes compilation issues in the stub driver by correcting type references and adding missing OpCode implementations, and introduces a new CI job to prevent future breakage.
- Changed
libc::stattoStattype alias inIntoInnerimplementations - Added missing
OpCodetrait implementations forRead,Write,ReadVectored,WriteVectored, andReadManagedoperations - Added a new
check_stubCI job to ensure the stub driver compiles
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| compio-driver/src/sys/stub/op.rs | Fixed type references from libc::stat to Stat and added missing OpCode implementations for file I/O operations and managed read operations |
| .github/workflows/ci_check.yml | Added new CI job check_stub to verify stub driver compilation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@George-Miao could you review again? |
George-Miao
left a comment
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.
LGTM
Closes #598
Also add a simple CI test to make sure that it won't be broken in the future.