Skip to content

fix: honor values when reading GPT partition table #135

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

Merged
merged 1 commit into from
Jul 29, 2025

Conversation

smira
Copy link
Member

@smira smira commented Jul 28, 2025

Keep using values from the GPT header on read flow (vs. the new partition flow), and trust whatever it says.

Fixes #134

@smira smira marked this pull request as draft July 28, 2025 17:49
@github-project-automation github-project-automation bot moved this to To Do in Planning Jul 28, 2025
@talos-bot talos-bot moved this from To Do to In Review in Planning Jul 28, 2025
@smira smira force-pushed the fix/gpt-reading branch from 325bb03 to 95c14ee Compare July 28, 2025 17:56
Copy link
Member

@frezbo frezbo left a comment

Choose a reason for hiding this comment

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

I wonder if we can test this 🤔

@github-project-automation github-project-automation bot moved this from In Review to Approved in Planning Jul 29, 2025
@smira
Copy link
Member Author

smira commented Jul 29, 2025

I wonder if we can test this 🤔

that's where I stopped yesterday - I will do tests and take it out of draft

Keep using values from the GPT header on read flow (vs. the new
partition flow), and trust whatever it says.

Fixes siderolabs#134

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira force-pushed the fix/gpt-reading branch from 95c14ee to 49842ec Compare July 29, 2025 14:03
@smira
Copy link
Member Author

smira commented Jul 29, 2025

I wonder if we can test this 🤔

that's where I stopped yesterday - I will do tests and take it out of draft

I added unit-tests - they both fail with v2 branch and pass with this PR

@smira smira marked this pull request as ready for review July 29, 2025 14:03
@smira
Copy link
Member Author

smira commented Jul 29, 2025

/m

@talos-bot talos-bot merged commit 49842ec into siderolabs:v2 Jul 29, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Planning Jul 29, 2025
smira added a commit to smira/talos that referenced this pull request Jul 29, 2025
Import the fix from siderolabs/go-blockdevice#135

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Jul 30, 2025
Import the fix from siderolabs/go-blockdevice#135

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d62e255)
smira added a commit to smira/talos that referenced this pull request Jul 30, 2025
Import the fix from siderolabs/go-blockdevice#135

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d62e255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Wrong calculation for firstUsableLBA on Scaleway Block Storage
4 participants