diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sg_inq.c | 5 | ||||
-rw-r--r-- | src/sg_vpd.c | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/sg_inq.c b/src/sg_inq.c index a3a8f0af..7540797e 100644 --- a/src/sg_inq.c +++ b/src/sg_inq.c @@ -1,5 +1,5 @@ /* A utility program originally written for the Linux OS SCSI subsystem. - * Copyright (C) 2000-2021 D. Gilbert + * Copyright (C) 2000-2022 D. Gilbert * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) @@ -51,7 +51,7 @@ #include "sg_pt_nvme.h" #endif -static const char * version_str = "2.13 20210803"; /* spc6r05 */ +static const char * version_str = "2.14 20220109"; /* spc6r06 */ /* INQUIRY notes: * It is recommended that the initial allocation length given to a @@ -2380,6 +2380,7 @@ decode_b1_vpd(uint8_t * buff, int len, int do_hex) } zoned = (buff[8] >> 4) & 0x3; /* added sbc4r04 */ printf(" ZONED=%d%s\n", zoned, zoned_strs[zoned]); + /* ZONED field made obsolete in sbc5r01 */ printf(" FUAB=%d\n", buff[8] & 0x2); printf(" VBULS=%d\n", buff[8] & 0x1); printf(" DEPOPULATION_TIME=%u (seconds)\n", diff --git a/src/sg_vpd.c b/src/sg_vpd.c index cbd2876b..0ca63030 100644 --- a/src/sg_vpd.c +++ b/src/sg_vpd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021 Douglas Gilbert. + * Copyright (c) 2006-2022 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -40,7 +40,7 @@ */ -static const char * version_str = "1.67 20211112"; /* spc6r05 + sbc5r01 */ +static const char * version_str = "1.67 20220109"; /* spc6r06 + sbc5r01 */ /* standard VPD pages, in ascending page number order */ #define VPD_SUPPORTED_VPDS 0x0 @@ -2565,13 +2565,16 @@ decode_zbdch_vpd(uint8_t * b, int len, int do_hex) printf(" Zoned block device extension: "); switch ((b[4] >> 4) & 0xf) { case 0: - printf("not reported [0]\n"); + if (PDT_ZBC == (0x1f & b[0])) + printf("host managed zoned block device [0, pdt=0x14]\n"); + else + printf("not reported [0]\n"); break; case 1: - printf("host aware zone block device model\n"); + printf("host aware zoned block device model [1]\n"); break; case 2: - printf("Domains and realms zone block device model\n"); + printf("Domains and realms zoned block device model [2]\n"); break; default: printf("Unknown [0x%x]\n", (b[4] >> 4) & 0xf); |