Go to file
Bart Van Assche 67d0a8ecfa scsi: add bsg support
The Linux kernel supports two different versions of the SG_IO API,
namely v3 and v4. This patch adds support for version 4 of this API.
At least the sg3_utils package supports version 4 of this API.  Version
4 of this API is used if /dev/bsg/H:C:I:L is used as device name.

This patch has been tested by inspecting the output of the following
commands:

modprobe scsi_debug dev_size_mb=16 delay=0
dev=$(lsscsi | sed -n '/ scsi_debug /s,^[^/]*,,p')
./strace -eioctl -s256 sg_inq $dev
echo 'Test XDWRITEREAD(10)'
bsg=/dev/bsg/$(lsscsi | sed -n '/ scsi_debug /s,^\[\([^]]\+\)\].*,\1,p')
dd if=/dev/zero bs=512 count=1 |
  ./strace -eioctl -s256 sg_raw -s 512 -r 1024 $bsg 53 00 00 00 00 01 00 00 01 00

* configure.ac (AC_CHECK_HEADERS): Add linux/bsg.h.
* xlat/bsg_protocol.in: New file.
* xlat/bsg_subprotocol.in: Likewise.
* scsi.c: Include them and <linux/bsg.h>.
(print_sg_io_v3_req, print_sg_io_v3_res, print_sg_io_v4_req,
print_sg_io_v4_res): New functions.
(print_sg_io_req, print_sg_io_res): Use them.
(scsi_ioctl): Update callers.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2015-02-08 02:07:22 +00:00
2014-08-15 13:14:15 +00:00
2015-02-06 01:23:05 +00:00
2015-01-21 21:06:10 +00:00
2015-02-08 02:07:22 +00:00
2012-05-01 21:51:38 +00:00
2014-09-08 16:43:36 +00:00
2014-06-04 16:29:18 +00:00
2015-01-26 19:08:37 +00:00
2009-07-08 21:01:21 +00:00
2015-02-08 02:07:22 +00:00
2013-05-17 23:18:55 +00:00
2012-05-01 21:51:38 +00:00
2015-01-26 19:08:37 +00:00
2014-12-15 23:54:37 +00:00
2014-05-30 21:40:03 +00:00
2014-05-30 22:10:21 +00:00
2012-02-25 15:29:21 +01:00
2014-05-30 21:40:03 +00:00
2015-01-12 14:27:11 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 21:40:03 +00:00
2014-04-10 15:29:13 +00:00
2015-01-26 15:58:18 +00:00
2014-05-30 21:31:08 +00:00
2015-02-06 01:23:05 +00:00
2014-12-04 02:23:40 +00:00
2015-01-26 15:58:18 +00:00
2014-08-19 11:34:44 +00:00
2015-02-06 01:23:05 +00:00
2014-05-30 22:10:21 +00:00
2013-05-17 23:18:55 +00:00
2015-02-08 02:07:22 +00:00
2015-02-06 01:23:05 +00:00
2015-01-26 15:58:18 +00:00
2014-08-15 13:14:15 +00:00
2014-05-30 21:40:03 +00:00
2014-12-13 01:34:47 +00:00
2014-12-03 21:21:04 +00:00
2014-09-29 23:29:56 +00:00
2014-12-04 02:23:40 +00:00
2015-01-26 19:08:37 +00:00
2015-01-26 19:05:40 +00:00
2015-01-26 19:08:37 +00:00
2014-02-26 00:01:00 +00:00
2015-01-26 19:08:37 +00:00

This is strace, a system call tracer for Linux.

strace is released under a Berkeley-style license at the request
of Paul Kranenburg; see the file COPYING for details.

See the file CREDITS for a list of authors and other contributors.

See the file INSTALL for compilation and installation instructions.

See the file NEWS for information on what has changed in recent
versions.

You can get the latest version of strace from its homepage at
http://sourceforge.net/projects/strace/ .

Please send bug reports and enhancements to the strace
mailinglist at strace-devel@lists.sourceforge.net.
Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%