Repository navigation
[14/n] internal disks always have an internal zpool ID - #8329
Merged
sunshowers merged 8 commits intoJun 19, 2025
Merged
sunshowers merged 8 commits into
sunshowers merged 8 commits into
Conversation
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
jgallagher
reviewed
Jun 16, 2025
jgallagher
left a comment
Contributor
There was a problem hiding this comment.
We chatted about this some, so just noting that here - ZpoolUuid alone doesn't carry enough information to know whether it's associated with an internal or external disk. ZpoolName does that at runtime. If we want to replace ZpoolNames with UUIDs, it probably makes sense to have specific InternalZpoolUuid and ExternalZpoolUuid types, so instead of replacing ZpoolName with ZpoolUuid and runtime assertions, we replace it with a statically-guaranteed-to-be-internal UUID kind.
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
jgallagher
approved these changes
Jun 18, 2025
sunshowers
changed the base branch from
sunshowers/spr/main.13n-internal-disks-always-have-an-internal-zpool-id
to
main
June 19, 2025 04:24
sunshowers
enabled auto-merge (squash)
June 19, 2025 04:42
sunshowers
deleted the
sunshowers/spr/13n-internal-disks-always-have-an-internal-zpool-id
branch
June 19, 2025 07:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Store an
InternalZpoolUuidrather than theZpoolName.Depends on: