From 737cdcd23f0a13963f97840cd0acd4672e9eb3ee Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 6 Jun 2014 16:55:26 +0000 Subject: 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 --- lib/sg_cmds_basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sg_cmds_basic.c') 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]; -- cgit v1.2.3