sg: 16-byte cdb support and lots of fixes
authorKris Davis <Kris.Davis@hgst.com>
Wed, 30 Sep 2015 15:57:16 +0000 (17:57 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 30 Sep 2015 15:59:16 +0000 (17:59 +0200)
commit5ad7be5685088435aca91c23d34fc2411dd38154
tree54eb31c531d66b2315a51fe81d1f7bf453d07c10
parent194fffd042d374d5e13af61a14fe16734c396d8c
sg: 16-byte cdb support and lots of fixes

-- Fixed prob with queue depths > 1 (usually would work at qd = 2,
   but had fundimental prob with retrieving multiple events)
   Only works up to QD 16 due to kernel limitation.

-- Fix problem with check and report scsi operation errors.
   There was no check, so op errors were being ignored.
   Added support to retrieve and print sense data to output.

-- Fix problem with op timeouts. No timeouts op time out was being set.
   Hardcoded to 30 seconds.

-- Support switch to 16 Byte operations when LBA range needed.

-- Set default size based on maxlba of device retrieved
   from ReadCapacity command.

Updated by Jens to:

- ->errdetails() must be reentrant. Return an allocated buffer, have
  the caller free it when done.

- Bump io engine version number, the ops have changed.

- Add strlcat() as a real helper, don't stuff it in sg.c

- Lots of style cleanups

Signed-off-by: Jens Axboe <axboe@fb.com>
Makefile
configure
engines/sg.c
io_u.c
ioengine.h
lib/strlcat.c [new file with mode: 0644]
lib/strlcat.h [new file with mode: 0644]
os/os.h