diff options
Diffstat (limited to 'src/sg_write_x.c')
-rw-r--r-- | src/sg_write_x.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sg_write_x.c b/src/sg_write_x.c index 925aa92f..0a41d4ae 100644 --- a/src/sg_write_x.c +++ b/src/sg_write_x.c @@ -38,7 +38,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "1.23 20200331"; +static const char * version_str = "1.24 20200429"; /* Protection Information refers to 8 bytes of extra information usually * associated with each logical block and is often abbreviated to PI while @@ -1374,6 +1374,11 @@ do_write_x(int sg_fd, const void * dataoutp, int dout_len, } ret = sense_cat; break; + case SG_LIB_CAT_ILLEGAL_REQ: + if (vb) + sg_print_command_len(x_cdb, cdb_len); + ret = sense_cat; + break; default: ret = sense_cat; break; |