diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-11-01 23:46:24 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-11-01 23:46:24 +0000 |
commit | 6d3bd268768b83b2749c560517c18b88f222df63 (patch) | |
tree | 5a29f79f49c19788ec25b5d2ec7074d7f09e2b4f /include | |
parent | 7b73fc26be3892abf1e91243cd107ff5bcef4a0b (diff) | |
download | sg3_utils-6d3bd268768b83b2749c560517c18b88f222df63.tar.gz |
sg_read_block_limits: fix granularity value, add --mloi option; sg_lib: add sg_ll_read_block_limits_v2(); sg_logs: json work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@978 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r-- | include/sg_cmds_extra.h | 3 | ||||
-rw-r--r-- | include/sg_pr2serr.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h index dde22983..6e24c6e0 100644 --- a/include/sg_cmds_extra.h +++ b/include/sg_cmds_extra.h @@ -113,6 +113,9 @@ int sg_ll_persistent_reserve_out(int sg_fd, int rq_servact, int rq_scope, * SG_LIB_NOT_READY (shouldn't happen), -1 -> other failure */ int sg_ll_read_block_limits(int sg_fd, void * resp, int mx_resp_len, bool noisy, int verbose); +int sg_ll_read_block_limits_v2(int sg_fd, bool mloi, void * resp, + int mx_resp_len, int * residp, bool noisy, + int verbose); /* Invokes a SCSI READ BUFFER command (SPC). Return of 0 -> * success, SG_LIB_CAT_INVALID_OP -> invalid opcode, diff --git a/include/sg_pr2serr.h b/include/sg_pr2serr.h index bebf9900..4a57d838 100644 --- a/include/sg_pr2serr.h +++ b/include/sg_pr2serr.h @@ -98,6 +98,7 @@ typedef struct sgj_state_t { * Note: strlen(in_name) should be <= max_sname_len . */ char * sgj_convert_to_snake_name(const char * in_name, char * sname, int max_sname_len); +bool sgj_is_snake_name(const char * in_name); /* There are many variants of JSON supporting functions below and some * abbreviations are used to shorten their function names: |