Ronnie Sahlberg
812df62bfd
SBC: Add GET_LBA_STATUS support and simple test
2012-05-30 18:41:12 +10:00
Ronnie Sahlberg
733b97f4b8
Add PREFETCH10/16 implementations
2012-05-03 06:21:49 +10:00
Ronnie Sahlberg
974738968d
Implement READ/WRITE_12/16 and a simple test for read16
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-05-01 21:54:32 +10:00
Ronnie Sahlberg
9c6447b73a
SENSE: add a sense key and an ascq
2012-04-28 15:03:43 +10:00
Ronnie Sahlberg
568e4ddfcc
SBC: Add support for WRITESAME16 and add simple tests using it to unmap blocks from a thin provisioned lun
2012-04-28 14:34:47 +10:00
Ronnie Sahlberg
cc0fa15e14
SBC: Add support for WRITESAME10 and a simple test for using writesame10 to unmap blocks from thin provisioned luns
2012-04-28 13:55:37 +10:00
Ronnie Sahlberg
dd5f94b2ca
Add support for UNMAP command and add a simple test for this opcode
2012-04-22 08:09:15 +10:00
Ronnie Sahlberg
d71a9d4f95
Add support for BLOCK LIMITS VPD page
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-04-20 17:57:40 +10:00
Ronnie Sahlberg
86bf89aabf
Add support for READCAPACITY16
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-04-20 17:56:39 +10:00
Ronnie Sahlberg
422bc32ce8
Add support for INQUIRY LOGICAL_BLOCK_PROVISIONING page
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-04-19 20:09:14 +10:00
Ronnie Sahlberg
50594830bd
Task Management. When we abort a task or a task set, or reset the lun or target
...
we must also cancel all active tasks.
This will trigger all affected tasks to have their callback invoked with
SCSI_STATUS_CANCELLED
2012-03-10 12:12:47 +11:00
Ronnie Sahlberg
cff996a96d
VERIFY10: Add support for VERIFY10. Also add a simple test for verify10
2012-01-26 15:47:14 +11:00
Ronnie Sahlberg
d486d466c8
Cast an expression to get rid of a compiler warning
2011-12-31 10:28:34 +11:00
Paolo Bonzini
217bf6f53e
fix warning from -Wswitch
2011-09-21 12:01:39 +02:00
Paolo Bonzini
c940381b59
fix warning from -Wsign-compare
2011-09-21 11:51:36 +02:00
Ronnie Sahlberg
3c11c3598b
Add a function to cancel a scsi task from libiscsi.
2011-09-19 21:21:40 +10:00
Ronnie Sahlberg
c3d3123981
Windows: Add support to build as a DLL under windows
2011-08-31 13:12:30 +10:00
Ronnie Sahlberg
0be42c8833
If an application specifies zero-copy read-buffers to read the data into
...
for a read10 call, the application might have specified too few buffers
for the full I/O.
For example if the application tries to read just 512 bytes off a MMC device.
In this case we wopuld run out of buffers and fail with a SEGV.
Instead of failing like this, return NULL from the function to locate a suitable buffer and read the remaining data from the command into the callback buffer instead, just like when no read-buffer at all has been specified.
2011-06-12 10:44:31 +10:00
Ronnie Sahlberg
de97dbdde8
start implementing mode page unmarshalling
2011-04-23 14:02:59 +10:00
Ronnie Sahlberg
3a39201543
Add 'zero-copy' in libiscsi for reads.
...
It is not real zero-copy since the data is still copied in the kernel,
but it avoids copying the data inside libiscsi as well as in the callback.
For SCSI tasks that will return data from the target, the application can now
specify application buffers for libiscsi to read the data directly into.
This is done by calling scsi_task_add_data_in_buffer(task, ...
These buffers need not be linear, you can specify different areas to read into
by calling this function several times.
See examples/iscsiclient.c for an example.
2011-04-20 05:46:17 +10:00
Ronnie Sahlberg
49dd0fb8b3
Add definition of INVALID OPERATION CODE asqc
2011-04-16 09:55:48 +10:00
Ronnie Sahlberg
07ad0572f2
Add support for READ6
2011-04-16 08:06:16 +10:00
Ronnie Sahlberg
1a5f267b1d
WRITE10: Set W bit to 1 only if we write data, i.e. number of blocks are >0
2011-04-04 18:47:32 +10:00
Ronnie Sahlberg
e7300bfb8b
READ10: only set R flag in iscsi if we are reading >0 blocks.
...
If we are reading 0 blocks, the R flag should be clear
2011-04-04 18:34:38 +10:00
Ronnie Sahlberg
5225b5fa66
Add definitions for ASCQ LBA-OUT-OF-RANGE
2011-04-04 17:40:13 +10:00
Ronnie Sahlberg
ec08fe7a45
Read10/Write10 parameters
...
LBA is uint32_t for read/write10
Also store the lba/numblocks arguments in the task structure for read10/write10
This makes it much easier to implement a fully async "read lots/write lots"
applications.
2011-01-23 18:34:16 +11:00
Ronnie Sahlberg
9ddce8dc24
Replace bzero() with memset()
2011-01-03 15:35:36 +11:00
Ronnie Sahlberg
8a6665a092
Licence
...
Change to LGPL 2.1+ to be compatible with kvm/qemu
2010-12-11 11:47:28 +11:00
Ronnie Sahlberg
709d85c4da
Add a COPYING file and updat ehte LGPL boilerplate
2010-12-05 11:11:37 +11:00
Ronnie Sahlberg
098bc5a9a7
Initial import of libiscsi
2010-12-05 08:24:57 +11:00