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

[1.x] Fix for block blkdev_ro() miss reports disk's readonly status #144

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

biger410
Copy link
Member

@biger410 biger410 commented Jan 7, 2025

Patch "block: fixes for v6.10" is a dependency of the second patch which is the fix for blkdev_ro() issue.

brenns10 and others added 2 commits January 7, 2025 22:29
In v6.10 there was a cleanup of struct block_device, removing the
bd_inode field and combining bd_read_only, bd_partno, and others into a
single __bd_flags atomic field. Fix the helpers for these changes.

Orabug: 37296325
Signed-off-by: Stephen Brennan <[email protected]>
(cherry picked from commit b8b1fa7)
Signed-off-by: Junxiao Bi <[email protected]>
Starting v5.11, new "GD_READ_ONLY" flag was introduced into
gendisk.state, it's used by disk driver to set disk to readonly,
fix blkdev_ro to support it.

Orabug: 37454983

Signed-off-by: Junxiao Bi <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 7, 2025
@brenns10 brenns10 merged commit bf79b66 into oracle-samples:stable/v1 Jan 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants