diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2014-06-06 16:55:26 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2014-06-06 16:55:26 +0000 |
commit | 737cdcd23f0a13963f97840cd0acd4672e9eb3ee (patch) | |
tree | 17269cb10efa49d496744420fcb9be019220f0ad /lib/sg_cmds_basic.c | |
parent | 240dd15692debe127e57ff0fb4bc320f70614d5f (diff) | |
download | sg3_utils-737cdcd23f0a13963f97840cd0acd4672e9eb3ee.tar.gz |
sg_luns: add decoding for conglomerate LUNS; change struct sg_simple_inquiry_resp::rmb to byte_1
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@586 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_cmds_basic.c')
-rw-r--r-- | lib/sg_cmds_basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sg_cmds_basic.c b/lib/sg_cmds_basic.c index 43c127c7..46e567be 100644 --- a/lib/sg_cmds_basic.c +++ b/lib/sg_cmds_basic.c @@ -27,7 +27,7 @@ #endif -static const char * version_str = "1.67 20140514"; +static const char * version_str = "1.68 20140604"; #define SENSE_BUFF_LEN 64 /* Arbitrary, could be larger */ @@ -361,7 +361,7 @@ sg_simple_inquiry(int sg_fd, struct sg_simple_inquiry_resp * inq_data, if (0 == ret) { inq_data->peripheral_qualifier = (inq_resp[0] >> 5) & 0x7; inq_data->peripheral_type = inq_resp[0] & 0x1f; - inq_data->rmb = (inq_resp[1] & 0x80) ? 1 : 0; + inq_data->byte_1 = inq_resp[1]; inq_data->version = inq_resp[2]; inq_data->byte_3 = inq_resp[3]; inq_data->byte_5 = inq_resp[5]; |