Skip to content

[sled-agent] Read boot partition of M.2 drives (PR 1/2) #8450

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

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)].

@@ -180,7 +180,7 @@ pub(crate) struct DatasetTaskHandle(mpsc::Sender<DatasetTaskRequest>);
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?

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.

2 participants