diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-11-20 17:13:42 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-11-20 17:13:42 +0000 |
commit | 20315aa4fae1340e5d4b1faae15b90ee34b9ea50 (patch) | |
tree | eb935ed0b6aed4abf787556adcfe9e3cb99c297d /testing/sg_iovec_tst.cpp | |
parent | 26be8550ae1aad5db9bcf9b0cfe1fdecccd210df (diff) | |
download | sg3_utils-20315aa4fae1340e5d4b1faae15b90ee34b9ea50.tar.gz |
sg_z_act_query: new utility for sending either a Zone activate or Zone query command; sg_rep_zones: add Report zone starting LBA granularity field in REPORT ZONES response [zbc2r12]; sg_decode_sense: add --nodecode option; initialize all sense buffers to 0; rework main README file
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@923 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/sg_iovec_tst.cpp')
-rw-r--r-- | testing/sg_iovec_tst.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/sg_iovec_tst.cpp b/testing/sg_iovec_tst.cpp index 6228b9eb..0d28526b 100644 --- a/testing/sg_iovec_tst.cpp +++ b/testing/sg_iovec_tst.cpp @@ -147,7 +147,7 @@ sg_read(int sg_fd, uint8_t * buff, int num_blocks, int from_block, int bs, int elem_size, int async) { uint8_t rdCmd[10] = {READ_10, 0, 0, 0, 0, 0, 0, 0, 0, 0}; - uint8_t senseBuff[SENSE_BUFF_LEN]; + uint8_t senseBuff[SENSE_BUFF_LEN] = {0}; struct sg_io_hdr io_hdr; struct pollfd a_poll; int dxfer_len = bs * num_blocks; @@ -251,7 +251,7 @@ sg_read_v4(int sg_fd, uint8_t * buff, int num_blocks, int from_block, int bs, int elem_size, int async) { uint8_t rdCmd[10] = {READ_10, 0, 0, 0, 0, 0, 0, 0, 0, 0}; - uint8_t senseBuff[SENSE_BUFF_LEN]; + uint8_t senseBuff[SENSE_BUFF_LEN] = {0}; struct sg_io_v4 io_hdr; struct pollfd a_poll; int dxfer_len = bs * num_blocks; |