diff options
Diffstat (limited to 'archive/sgs_dd.c')
-rw-r--r-- | archive/sgs_dd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archive/sgs_dd.c b/archive/sgs_dd.c index 4c68d90c..fa34d7b1 100644 --- a/archive/sgs_dd.c +++ b/archive/sgs_dd.c @@ -166,7 +166,7 @@ int read_capacity(int sg_fd, int * num_sect, int * sect_sz) return -1; } res = sg_err_category3(&io_hdr); - if (SG_LIB_CAT_MEDIA_CHANGED == res) + if (SG_LIB_CAT_UNIT_ATTENTION == res) return 2; /* probably have another go ... */ else if (SG_LIB_CAT_CLEAN != res) { sg_chk_n_print3("read capacity", &io_hdr); @@ -272,7 +272,7 @@ int sg_finish_io(Rq_coll * clp, int wr, Rq_elem ** repp) printf("Recovered error on block=%d, num=%d\n", rep->blk, rep->num_blks); break; - case SG_LIB_CAT_MEDIA_CHANGED: + case SG_LIB_CAT_UNIT_ATTENTION: return 1; default: sg_chk_n_print3(rep->wr ? "writing": "reading", hp); |