Skip to content

fix: resolve deprecated API usage in disk_blockdevice and storvsp#3069

Closed
benhillis wants to merge 1 commit intomicrosoft:mainfrom
benhillis:storage_clippy_issues
Closed

fix: resolve deprecated API usage in disk_blockdevice and storvsp#3069
benhillis wants to merge 1 commit intomicrosoft:mainfrom
benhillis:storage_clippy_issues

Conversation

@benhillis
Copy link
Copy Markdown
Member

  • disk_blockdevice: Replace deprecated io_uring::types::RwFlags with i32 to match updated rw_flags() method signature
  • storvsp: Replace deprecated try_next() with try_recv() on mpsc::Receiver

@benhillis benhillis requested review from a team as code owners March 19, 2026 20:02
Copilot AI review requested due to automatic review settings March 19, 2026 20:02
@github-actions github-actions bot added the unsafe Related to unsafe code label Mar 19, 2026
@github-actions
Copy link
Copy Markdown

⚠️ Unsafe Code Detected

This PR modifies files containing unsafe Rust code. Extra scrutiny is required during review.

For more on why we check whole files, instead of just diffs, check out the Rustonomicon

Copy link
Copy Markdown
Contributor

Copilot AI left a 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 updates storage device code to match upstream API changes, removing deprecated usages so the affected crates continue to build cleanly against newer dependencies.

Changes:

  • disk_blockdevice: Replace deprecated io_uring::types::RwFlags usage with an i32 flag value to match the updated rw_flags() signature.
  • storvsp: Replace deprecated try_next() on a futures::channel::mpsc::Receiver with try_recv().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
vm/devices/storage/storvsp/src/lib.rs Switches rescan notification drain call from deprecated try_next() to try_recv().
vm/devices/storage/disk_blockdevice/src/lib.rs Removes deprecated RwFlags import and updates RWF_DSYNC constant type to i32 for rw_flags().

@benhillis benhillis force-pushed the storage_clippy_issues branch from 851b8c1 to 87599ec Compare March 19, 2026 22:55
- disk_blockdevice: Replace deprecated io_uring::types::RwFlags with i32
  to match updated rw_flags() method signature
- storvsp: Replace deprecated try_next() with try_recv() on mpsc::Receiver
@benhillis benhillis force-pushed the storage_clippy_issues branch from 87599ec to 8937de7 Compare March 20, 2026 00:19
Copilot AI review requested due to automatic review settings March 20, 2026 00:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@benhillis benhillis closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unsafe Related to unsafe code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants