summaryrefslogtreecommitdiffstats
path: root/share/examples/scsi_target/scsi_cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump MAX_INITIATORS to 1024- the LSI-Logic can go even higher thanmjacob2006-09-271-37/+72
| | | | | | | | | | | | | | this for 'initiator id'- this is a stopgap until a sparse map is added. Make compat defines for offset format (FreeBSD 5 or less). Add no-asyncio flag. There's some breakage with ASYNC I/O that every now and then drops us into an infinite loop. This also then does a fallback to no-asyncio if the AIO option isn't loaded/compiled into the kernel. A number of other chanes to try and track some breakage.
* If we end up with a CTIO completing with CAM_REQUEUE_REQ,mjacob2006-04-111-2/+16
| | | | | be obliging and just redo the request instead of squawking and dying.
* Move the check for non-ATIO_CMD ahead of the cache chech so thatmjacob2006-03-251-9/+10
| | | | | | | completion for unsupported commands doesn't abort. Reviewed by: nate MFC after: 2 weeks
* At least respond to REPORT LUNS with an ILLEGAL COMMAND response.mjacob2006-03-221-1/+4
| | | | | This keeps us from dumping core when modern OS' like Windows and Linux see us.
* Note that REPORT_LUNS should be implemented to work better with Linuxnjl2004-01-091-0/+1
| | | | and Windows as initiators.
* Enable autosense by default. This shouldn't hurt SPI and is requirednjl2004-01-091-1/+1
| | | | for FC.
* - Enable 16byte commands.simokawa2003-10-181-12/+103
| | | | | | | - Fix printf warnings on 64bit architectures. - Accept 'k', 'm' and etc. for -s option. Reviewed by: njl
* * scsi_cmds.csimokawa2003-09-251-3/+5
| | | | | | | | | | - Fill in autosense data. - Add compatibility for RELENG_4. * scsi_target.c - Raw device support - Set correct value in c_descr->offset for CAM_DIR_NONE case. - Support for CTIO abort.
* kernel:njl2003-01-161-2/+4
| | | | | | | | | | | | * Fix a bug where devices weren't cleaned up on close(): CAM_REQ_CMP != 0 user: * Increase timeout in usermode to CAM_TIME_INFINITY. The initiator is in charge of timeouts and the value was in ms, not seconds. * Bring two debugging printfs under the debug flag * Clean up man page to show increased testing on isp(4) Submitted by: gibbs (bugfixes)
* New SCSI target emulator codenjl2002-11-221-0/+664
This code allows a user program to enable target mode on a SIM and then emulate any number of devices (disks, tape drives, etc.) All decisions about device behavior (UA, CA, inquiry response) are left to the usermode program and the kernel driver is merely a conduit for CCBs. This enables multiple concurrent target emulators, each using its own backing store and IO model. Also included is a user program that emulates a disk (RBC) using a file as a backing store. This provides functionality similar to md(4) at the CAM layer. Code has been tested on ahc(4) and should also work on isp(4) (and other SIMs that gain target mode support). It is a complete rewrite of /sys/cam/scsi_target* and /usr/share/examples/scsi_target. Design, comments from: gibbs Supported by: Cryptography Research Approved by: re
OpenPOWER on IntegriCloud