diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-08-18 19:46:38 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-08-18 19:46:38 +0000 |
commit | 7e7308a2dbdec4c900b0805ad94324d3a288a163 (patch) | |
tree | c6c84399abcab97cc9bb0657f0734e0aa56a917d /include | |
parent | 98b99ad2ab348bbba1676b95a8895f12ee48fd31 (diff) | |
download | sg3_utils-7e7308a2dbdec4c900b0805ad94324d3a288a163.tar.gz |
sg_inq+sg_vpd: more updates but not finished
The sg_inq+sg_inq work is mainly JSON additions.
sg_vpd has a new --sinq_inraw=RFN option.
Update and place names for the 64 TapeAlert flags
in the library. This improves TapeAlert reporting
for sg_inq, sg_vpd and sg_logs.
Refine the description of the VPD page merge of
processing for sg_inq and sg_vpd to only include _T10_
defined pages, so the vendor specific VPD page
processings of those utilities are still separate.
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@969 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r-- | include/sg_lib_data.h | 5 | ||||
-rw-r--r-- | include/sg_pr2serr.h | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/sg_lib_data.h b/include/sg_lib_data.h index 1e427043..b27b7c8d 100644 --- a/include/sg_lib_data.h +++ b/include/sg_lib_data.h @@ -46,9 +46,9 @@ extern "C" { #define SG_VARIABLE_LENGTH_CMD 0x7f #define SG_WRITE_BUFFER 0x3b #define SG_ZONING_OUT 0x94 -#define SG_ZBC_OUT SG_ZONING_OUT /* as SPC calls them */ +#define SG_ZBC_OUT SG_ZONING_OUT /* as SPC calls them */ #define SG_ZONING_IN 0x95 -#define SG_ZBC_IN SG_ZONING_IN /* as SPC calls them */ +#define SG_ZBC_IN SG_ZONING_IN /* as SPC calls them */ @@ -128,6 +128,7 @@ extern struct sg_lib_value_name_t sg_lib_scsi_feature_sets[]; extern const char * sg_lib_sense_key_desc[]; extern const char * sg_lib_pdt_strs[]; extern const char * sg_lib_transport_proto_strs[]; +extern const char * sg_lib_tapealert_strs[]; extern int sg_lib_pdt_decay_arr[]; extern struct sg_lib_simple_value_name_t sg_lib_nvme_admin_cmd_arr[]; diff --git a/include/sg_pr2serr.h b/include/sg_pr2serr.h index 5119f003..54b8150c 100644 --- a/include/sg_pr2serr.h +++ b/include/sg_pr2serr.h @@ -320,7 +320,10 @@ void sgj_js_nv_ihexstr_nex(sgj_state * jsp, sgj_opaque_p jop, const char * str_name, const char * val_s, const char * nex_s); -/* Add hex byte strings irrespective of jsp->pr_hex setting. */ +/* Add named field whose value is a (large) JSON string made up of num_bytes + * ASCII hexadecimal bytes (each two hex digits seperated by a space) starting + * at byte_arr. The heap is used for intermediate storage so num_bytes can + * be arbitrarily large. */ void sgj_js_nv_hex_bytes(sgj_state * jsp, sgj_opaque_p jop, const char * name, const uint8_t * byte_arr, int num_bytes); |