-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for smartpqi #130
Add support for smartpqi #130
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #130 +/- ##
==========================================
- Coverage 66.86% 65.78% -1.09%
==========================================
Files 16 17 +1
Lines 2161 2531 +370
==========================================
+ Hits 1445 1665 +220
- Misses 520 667 +147
- Partials 196 199 +3 ☔ View full report in Codecov by Sentry. |
Thanks - it looks good to me. Did you want to rebase or merge as is (with or without the 3 error messages updated)? |
I'll address your comment and rebase/squash into 3 commits (and fix the lint error I somehow missed) |
a9af788
to
eb3501f
Compare
Older golanglint-ci attempted to lint imported modules due to newer golang version (1.20+), moving to 1.56.1 resolves the issue but then made other modules be come much more difficult to deal with. I noticed there are quite a few //nolint: lines throughout the project and instead of continuing to pepper those around, I chose to disable not-useful nagging/hard-to-configure linters. Signed-off-by: Ryan Harper <[email protected]>
Introduce a RAIDController interface to abstract linux/system from having to know which raid controller it is interacting with. This also supports handling a raid interface with multiple controllers. - Update build Makefile target to depend on all go files Signed-off-by: Ryan Harper <[email protected]>
The smartpqi driver for Adaptec/Microsemi RAID controllers uses a cli tool called `arcconf`. Add support modeled after the existing MegaRAID/storcli structures and implement the RAID Controller interface introduced to abstract the specific RAID adapter for the linux system. - Did not implement the Caching mechansim, repeated invocations do not have any significant impact on system, 5 minute timeout seems quite long to wait for RAID device changes which happen immediately after issuing arcconf commands. - Refactored how linux package looks up disks to see if they belong to a RAID adapter to prevent import loops. - Added tests for arcconf for the interface commands parsing output collected from systems with smartpqi driver and card - Added smartpqi to the demo program Signed-off-by: Ryan Harper <[email protected]>
eb3501f
to
eabe011
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smoser please ping if you wanted to take a look.
Add support for smartpqi/arcconf RAID adapters on Linux
The smartpqi driver for Adaptec/Microsemi RAID controllers uses a cli
tool called
arcconf
. Add support modeled after the existingMegaRAID/storcli structures and implement the RAID Controller interface
introduced to abstract the specific RAID adapter for the linux system.
Did not implement the Caching mechansim, repeated invocations do not
have any significant impact on system, 5 minute timeout seems quite long
to wait for RAID device changes which happen immediately after issuing
arcconf commands.
Refactored how linux package looks up disks to see if they belong to
a RAID adapter to prevent import loops.
Added tests for arcconf for the interface commands parsing output
collected from systems with smartpqi driver and card
Added smartpqi to the demo program
Signed-off-by: Ryan Harper [email protected]