-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle Drives with existing config from another RAID adapter
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]>
- Loading branch information
Showing
2 changed files
with
50 additions
and
109 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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