Skip to content

[14/n] internal disks always have an internal zpool ID - #8329

Merged
sunshowers merged 8 commits into
mainfrom
sunshowers/spr/13n-internal-disks-always-have-an-internal-zpool-id
Jun 19, 2025
Merged

sunshowers merged 8 commits into
mainfrom
sunshowers/spr/13n-internal-disks-always-have-an-internal-zpool-id

Conversation

@sunshowers

@sunshowers sunshowers commented Jun 12, 2025 •

Copy link
Copy Markdown
Contributor

Store an InternalZpoolUuid rather than the ZpoolName.

Depends on:

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 jgallagher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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
@sunshowers sunshowers changed the title [13/n] internal disks always have an internal zpool ID [14/n] internal disks always have an internal zpool ID Jun 18, 2025
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@sunshowers
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
Created using spr 1.3.6-beta.1
@sunshowers
sunshowers enabled auto-merge (squash) June 19, 2025 04:42
@sunshowers
sunshowers merged commit 5332d7c into main Jun 19, 2025
@sunshowers
sunshowers deleted the sunshowers/spr/13n-internal-disks-always-have-an-internal-zpool-id branch June 19, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants