diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-05-28 18:23:03 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-05-28 18:23:03 +0000 |
commit | d65eadbdaa302c7b83c059569a28efd3304947e4 (patch) | |
tree | 748a38551582ad7aab252f35dfd7637caf2dbfe2 /include | |
parent | 46fc8659ec9bfc87e58008a5341393a86ca40c52 (diff) | |
download | sg3_utils-d65eadbdaa302c7b83c059569a28efd3304947e4.tar.gz |
sg_lib: add sg_get_zone_type_str()
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@902 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r-- | include/sg_lib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sg_lib.h b/include/sg_lib.h index 108ab873..857f0d1c 100644 --- a/include/sg_lib.h +++ b/include/sg_lib.h @@ -325,6 +325,11 @@ const char * sg_get_desig_code_set_str(int val); * otherwise returns NULL. */ const char * sg_get_desig_assoc_str(int val); +/* Yield string associated with zone type (see ZBC and ZBC-2) [e.g. REPORT + * ZONES command response]. Returns 'buff' unless buff_len < 1 in which + * NULL is returned. */ +char * sg_get_zone_type_str(uint8_t zt, int buff_len, char * buff); + /* Yield SCSI Feature Set (sfs) string. When 'peri_type' is < -1 (or > 31) * returns pointer to string (same as 'buff') associated with 'sfs_code'. * When 'peri_type' is between -1 (for SPC) and 31 (inclusive) then a match |