Skip to content
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

fix: Handle Drives with existing config from another RAID adapter #136

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

raharper
Copy link
Collaborator

@raharper raharper commented Feb 6, 2025

When querying state from the controller with drives that have existing RAID config, the PhysicalDrive.DG field has the letter 'F' specified. Handle this case by assigning another negative number (-2). Also Allocate a new DGUnknown value (-99) and use this when we encounter another string value that we don't know about rather than crashing.

Add a test case for this scenario.

Additional changes

  • Dropped commented out tests
  • Created const values for the DG properties

When querying state from the controller with drives that have existing
RAID config, the PhysicalDrive.DG field has the letter 'F' specified.
Handle this case by assigning another negative number (-2).  Also
Allocate a new DGUnknown value (-99) and use this when we encounter
another string value that we don't know about rather than crashing.

Add a test case for this scenario.

Additional changes
- Dropped commented out tests
- Created const values for the DG properties

Signed-off-by: Ryan Harper <[email protected]>
@raharper raharper merged commit d8386ce into project-machine:main Feb 6, 2025
3 of 4 checks passed
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