-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-395560 Improve logging and error checking on sg_readcap
When reading information using sg_readcap, it would be useful in the event of failure to log what the return code was so that we know what failure we're dealing with. Also, per the manual pages for these commands, there are quite a few more return codes which should be considered retryable, plus a non-zero success return code which is theoretically possible. Add a function to gather up the checks and logs for these things and then wrap a call to that function in a short retry loop. Signed-off-by: Tim Smith <[email protected]>
- Loading branch information
1 parent
d87b53a
commit 25ceda3
Showing
1 changed file
with
52 additions
and
5 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