Recent changes (master)
The following changes since commit 793b868671d14f9a3e4fa76ac129545987084a8d:
randtrimwrite: fix corner case with variable block sizes (2022-10-03 17:36:57 -0400)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 0474b83f022f1f1cc14208c05b7ccda682e01263:
Merge branch 'master' of https://github.com/bvanassche/fio (2022-10-04 14:25:09 -0600)
----------------------------------------------------------------
Bart Van Assche (2):
Android: Fix the build of the 'sg' engine
Android: Enable the 'sg' engine
Jens Axboe (1):
Merge branch 'master' of https://github.com/bvanassche/fio
Makefile | 3 ++- engines/sg.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-)
---
Diff of recent changes:
Makefile +2 -1
@@ -249,7 +249,8 @@ endif endif ifeq ($(CONFIG_TARGET_OS), Android) SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c profiles/tiobench.c \ - oslib/linux-dev-lookup.c engines/io_uring.c engines/nvme.c + oslib/linux-dev-lookup.c engines/io_uring.c engines/nvme.c \ + engines/sg.c cmdprio_SRCS = engines/cmdprio.c ifdef CONFIG_HAS_BLKZONED SOURCE += oslib/linux-blkzoned.c
engines/sg.c +3 -1
@@ -1331,10 +1331,12 @@ static char *fio_sgio_errdetails(struct io_u *io_u)strlcat (msg,". " ,MAXERRDETAIL ); }if (hdr->sb_len_wr) { +const uint8_t *const sbp = hdr->sbp; +snprintf (msgchunk,MAXMSGCHUNK ,"Sense Data (%d bytes):" , hdr->sb_len_wr);strlcat (msg, msgchunk,MAXERRDETAIL );for (i =0 ; i < hdr->sb_len_wr; i++) { -snprintf (msgchunk,MAXMSGCHUNK ," %02x" , hdr->sbp[i]); +snprintf (msgchunk,MAXMSGCHUNK ," %02x" , sbp[i]);strlcat (msg, msgchunk,MAXERRDETAIL ); }strlcat (msg,". " ,MAXERRDETAIL );