Skip to content

Conversation

@jgallagher
Copy link
Contributor

This PR is basically just adding the host_phase_2 module to sled-agent-config-reconciler, which reads the boot partition of the two M.2 slots (using multiple-of-the-disk-block-size reads, which are required when accessing the raw device). The results of these reads is only logged as of this PR; the followup adds it to inventory.

There are a handful of other cleanup changes that snuck in here due to dropping an out-of-date #![allow(dead_code)].

impl DatasetTaskHandle {
// For testing, create a handle on which requests will always fail with a
// `DatasetTaskError`.
#[cfg(any(test, feature = "testing"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this "testing" feature still being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is in other places, but this method isn't accessible outside the crate, so clippy complained about it being dead code.

@jgallagher jgallagher merged commit 5f2f06d into main Jul 3, 2025
17 checks passed
@jgallagher jgallagher deleted the john/config-reconciler-read-phase2 branch July 3, 2025 15:18
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