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

block: Probe with block size alignment #5727

Merged

Conversation

rbradford
Copy link
Member

  • block: Move DiskTopology to common code
  • block: Ensure probing reads are block size aligned

It doens't make sense to limit this to the async_io module and import
across modules so place in default create module.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
@rbradford rbradford requested a review from a team as a code owner September 3, 2023 11:03
@rbradford rbradford force-pushed the 2023-09-03-block-aligned-probing branch from 66e441c to d4d6c15 Compare September 3, 2023 11:08
This is necessary for O_DIRECT based use of raw block devices which may
require access at a larger block size than that of a sector (512 bytes.)

Fixes: cloud-hypervisor#5722

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
@rbradford rbradford force-pushed the 2023-09-03-block-aligned-probing branch from d4d6c15 to 1708cb9 Compare September 3, 2023 11:08
@thomasbarrett
Copy link
Contributor

Thanks @rbradford. I just tested this branch with a 4k logical block size NVMe disk and it worked like a charm :). Once this is merged, I will close this issue.

@likebreath likebreath merged commit 01097aa into cloud-hypervisor:main Sep 5, 2023
21 checks passed
@likebreath likebreath added the bug-fix Bug fix to include in release notes label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Bug fix to include in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants