diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-11-04 15:43:37 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-11-04 15:43:37 +0000 |
commit | 20f3fcb175b72c06464965a4bce7d0a5eaef47b9 (patch) | |
tree | 8c41fd7b2b61e624620c3eb377c54c073a02cc99 /src/sg_turs.c | |
parent | 44e90986b1aea4296ba69198130fd37a9ffca082 (diff) | |
download | sg3_utils-20f3fcb175b72c06464965a4bce7d0a5eaef47b9.tar.gz |
add two new exit status values: SG_LIB_CAT_STANDBY and SG_LIB_CAT_UNAVAILABLE which refine the 'not ready' exit status
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@980 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_turs.c')
-rw-r--r-- | src/sg_turs.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sg_turs.c b/src/sg_turs.c index 02612ed1..2d473c48 100644 --- a/src/sg_turs.c +++ b/src/sg_turs.c @@ -430,6 +430,20 @@ loop_turs(struct sg_pt_base * ptvp, struct loop_res_t * resp, resp->reported = true; } break; + case SG_LIB_CAT_STANDBY: + ++resp->num_errs; + if (vb) { + pr2serr("Ignoring standby device (sense key)\n"); + resp->reported = true; + } + break; + case SG_LIB_CAT_UNAVAILABLE: + ++resp->num_errs; + if (vb) { + pr2serr("Ignoring unavailable device (sense key)\n"); + resp->reported = true; + } + break; default: ++resp->num_errs; if (1 == op->do_number) { |