Skip to content

Add Unsupported error for cases when storcli returns Un-supported. - #99

Closed
smoser wants to merge 1 commit into
project-machine:masterfrom
smoser:fix/unsupported-cards
Closed

Add Unsupported error for cases when storcli returns Un-supported.#99
smoser wants to merge 1 commit into
project-machine:masterfrom
smoser:fix/unsupported-cards

Conversation

@smoser

Copy link
Copy Markdown
Collaborator

The SAS3508 returns Un-supported when you ask it:

storcli /c0/dall show all
storcli /c0/vall show all

I'm not sure how we should query this card, but for the time being
just add a new error type of Unsupported.

@smoser
smoserforce-pushed the fix/unsupported-cards branch from fa7febf to c334fe0CompareMarch 31, 2021 20:56
@codecov

codecovBot commented Mar 31, 2021

Copy link
Copy Markdown

Codecov Report

Merging #99 (a1633e0) into master (77e1f1a) will increase coverage by 0.23%.
The diff coverage is 78.94%.

Impacted file tree graph

@@ Coverage Diff @@## master #99 +/- ##
==========================================
+ Coverage 64.30% 64.54% +0.23% 
==========================================
Files 16 16 Lines 1706 1709 +3 ==========================================
+ Hits 1097 1103 +6 + Misses 441 439 -2 + Partials 168 167 -1 
Impacted FilesCoverage Δ
megaraid/megaraid.go84.21% <ø> (ø)
linux/system.go37.50% <50.00%> (+0.60%)⬆️
megaraid/storcli.go67.50% <82.35%> (+0.96%)⬆️
linux/util.go78.76% <0.00%> (+0.88%)⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77e1f1a...a1633e0. Read the comment docs.

@raharperraharper left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I saw two places with extra 'd' in Unsupported, not sure if that was intentional. Otherwise looks fine.

Comment threadmegaraid/storcli_test.go Outdated
Comment threadmegaraid/storcli_test.go Outdated
The SAS3508 returns Un-supported when you ask it:
storcli /c0/dall show all
storcli /c0/vall show all
I'm not sure how we should query this card, but for the time being
just add a new error type of Unsupported.
@smoser
smoserforce-pushed the fix/unsupported-cards branch from c334fe0 to a1633e0CompareApril 1, 2021 01:22
@smoser

Copy link
Copy Markdown
CollaboratorAuthor

@raharper adjusted, thank you for careful review.

smoser pushed a commit to smoser/disko that referenced this pull request Apr 1, 2021
For megaraid cards that do not support raid (true story), the
/c0/dall request will return Un-supported. But you can still get the
same information from the 'storcli /c0 show'.
Fixesproject-machine#99.
@smoser

Copy link
Copy Markdown
CollaboratorAuthor

Closing this in favor of #100.

Sign up for freeto 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

@smoser@raharper