diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2007-06-27 03:24:23 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2007-06-27 03:24:23 +0000 |
commit | 71e6e2d40657e63b9c20dc68f5e307639ef19c21 (patch) | |
tree | 18cab096bd20dcd67e51d1d741039fc85d3bad34 /archive/sgs_dd.c | |
parent | 88d420308cbb9cd9e58873ef726913690d5c91a4 (diff) | |
download | sg3_utils-71e6e2d40657e63b9c20dc68f5e307639ef19c21.tar.gz |
Load sg3_utils-1.21 into trunk/.
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@69 6180dd3e-e324-4e3e-922d-17de1ae2f315
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); |