Arne Redlich
b5a9ba6159
scsi-lowlevel: remove scsi_readcapacity10_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 22:04:57 +01:00
Arne Redlich
188505a72d
scsi-lowlevel: remove scsi_verify16_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:59:42 +01:00
Arne Redlich
de67d86e64
scsi-lowlevel: remove scsi_verify12_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:58:30 +01:00
Arne Redlich
10fd2f560b
scsi-lowlevel: remove scsi_verify10_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:57:00 +01:00
Arne Redlich
1dbdd04795
scsi-lowlevel: remove scsi_writeverify16_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:55:01 +01:00
Arne Redlich
a262d07c4b
scsi-lowlevel: remove scsi_writeverify12_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:53:44 +01:00
Arne Redlich
fff2527cda
scsi-lowlevel: remove scsi_writeverify10_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:52:34 +01:00
Arne Redlich
8169c3e280
scsi-lowlevel: remove scsi_compareandwrite_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:51:10 +01:00
Arne Redlich
9f7f7f1e0d
scsi-lowlevel: remove scsi_orwrite_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:48:17 +01:00
Arne Redlich
8f513c23f5
scsi-lowlevel: remove scsi_preventallow_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:46:52 +01:00
Arne Redlich
a02cd53cfc
scsi-lowlevel: remove scsi_startstopunit_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:45:02 +01:00
Arne Redlich
3ec1a2147f
scsi-lowlevel: remove scsi_write16_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:43:15 +01:00
Arne Redlich
f95d86f762
scsi-lowlevel: remove scsi_write12_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:41:53 +01:00
Arne Redlich
1ca5f447fc
scsi-lowlevel: remove scsi_write10_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:40:27 +01:00
Arne Redlich
daed6117c8
scsi-lowlevel: remove scsi_read16_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:38:35 +01:00
Arne Redlich
17eff2d8d9
scsi-lowlevel: remove scsi_read12_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:37:05 +01:00
Arne Redlich
f955449ecc
scsi-lowlevel: remove scsi_read10_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:35:37 +01:00
Arne Redlich
d95e811ccf
scsi-lowlevel: remove scsi_read6_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:34:08 +01:00
Arne Redlich
76aa2693c4
scsi-lowlevel: remove scsi_reportluns_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 21:31:11 +01:00
Ronnie Sahlberg
f9767e729a
VERIFY10/12/16 If BYTCHK is false we dont need to transfer any blocks to the target
...
If BYTCHK is false the target will perform a medium check of the indicated
LBAs only and not compare with anything out of the DATA-OUT buffers.
As such we dont need to/should not transfer any DAT-OUT to the target.
2012-11-18 09:46:51 -08:00
Ronnie Sahlberg
a5b8224f4e
Dont include iscsi headers from the scsi implementation in scsi-lowlevel.c
2012-11-11 09:49:49 -08:00
Ronnie Sahlberg
3b05e9996f
Move cancel_task and cancel_all_tasks from scsi-lowlevel.c to scsi-command.c
...
These two functions belong in the iscsi layer, not the scsi layer so move them
out from scsi-lowlevel.c so that we can start turning scsi-lowlevel.c to a pure
scsi layer and remove all dependencies to iscsi from it.
2012-11-11 09:44:11 -08:00
Ronnie Sahlberg
49af416f47
When we cancel a scsi task we don't need to unlink the in_buffers
...
We dont need to unlink the in-buffers when cancelling a scsi task
since the whole task structure will go away shortly anyway and all
entries in the link will be automatically freed when the task is freed.
2012-11-11 09:35:34 -08:00
Ronnie Sahlberg
4de36794f2
Make scsi_allocated_memory private to scsi-lowlevel and remove the ptr pointer
...
Change the list-head structure for in-task scsi memory allocations to
be private to scsi-lowlevel since is is never accessed from anyehwere else and
it is private to this function.
Remove the pointer to the user data in the list head and replace it with a zero length buffer at the end of the header.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-11-11 08:07:26 -08:00
Peter Lieven
a0b9080c6c
SCSI half mallocs in scsi_malloc
2012-11-11 08:07:13 -08:00
Jon Grimm
8fbc536779
TYPO: 'calculate' in comments
2012-10-25 12:59:55 -05:00
Jon Grimm
b81bdd3932
Merge with upstream
2012-10-25 12:56:26 -05:00
Jon Grimm
1eaca70a52
Add MaintenanceIn: Report Supported Opcodes (all) and testcase.
2012-10-25 12:48:37 -05:00
Peter Lieven
20cf2b279e
Fix incorrect whitespaces
...
At a few places there where spaces where tabulators where appropriate
2012-10-20 19:08:57 +02:00
Ronnie Sahlberg
c3adf1d814
Merge pull request #20 from jongrimm/master
...
RESERVE6/RELEASE6 Commands + testcase.
2012-09-27 18:39:22 -07:00
Jon Grimm
c7d8d2593c
Add RESERVE6/RELEASE6 Support.
2012-09-27 12:45:06 -05:00
Ronnie Sahlberg
85e427ea54
SCSI: READTOC change alloclen to a uint32 and encode it in the CDB
2012-09-25 06:54:01 -07:00
Jon Grimm
c3c1628c1d
read TOC: set XFER_NONE when xferlen==0 to match Ronnie's change
2012-09-24 10:43:07 -05:00
Jon Grimm
d6bea3db52
merge fixup
2012-09-24 10:22:58 -05:00
Jon Grimm
e55ec72f36
Add Read TOC (0x43) Command Support (and basic testcase).
2012-09-24 10:15:00 -05:00
Ronnie Sahlberg
62b8681409
SCSI: Fix all remaining places where alloc_len==0 means xfer direction should be == NONE
2012-09-19 19:43:01 -07:00
Ronnie Sahlberg
8f98cf3e12
INQUIRY: When alloc_len is set to 0 we should set XFER direction to NONOE, not READ
2012-09-19 18:23:54 -07:00
Ronnie Sahlberg
ead085ecd0
SCSI: INQUIRY fullsize is additional-length + 5, not +3
...
This bug would report the standard inquiry data size two bytes less than expected
2012-09-12 07:07:04 -07:00
Ronnie Sahlberg
dd006029a2
SCSI: Add unmarshalling of inquiry ADITIONAL_LENGTH field
2012-09-12 06:57:41 -07:00
Ronnie Sahlberg
116af01156
TYPO: Change periperal_device_type to just device_type
...
but leave the old name as a define for backward compatibility
2012-09-03 09:45:59 -07:00
Ronnie Sahlberg
2a15e39460
Add a new sense code
2012-07-30 07:38:38 +10:00
Ronnie Sahlberg
43bf059fca
Add ASCQ for MEDIUM_REMOVAL_PREVENTED
2012-07-21 10:28:32 +10:00
Ronnie Sahlberg
16da01ed4e
Add PREVENTALLOWMEDIUMREMOVAL support
2012-07-17 18:12:03 +10:00
Ronnie Sahlberg
025136e81c
Add support for STARTSTOPUNIT command
2012-07-15 08:10:39 +10:00
Ronnie Sahlberg
1ce5d97e57
TEST: Add test for ORWRITE command
2012-07-14 17:29:58 +10:00
Ronnie Sahlberg
11f7da678b
Add support for ORWRITE
2012-07-14 17:01:38 +10:00
Ronnie Sahlberg
017bb69ccd
Add new sense code for miscompare during verify
2012-07-14 12:49:42 +10:00
Ronnie Sahlberg
bac1d4d7af
We need to allow >uint8_t as xferlen since this is in unit of bytes, not blocks in the libiscsi api
2012-07-14 12:31:38 +10:00
Ronnie Sahlberg
bdd6e6bb11
Add support for COMPARE_AND_WRITE command
2012-07-14 11:34:40 +10:00
Ronnie Sahlberg
29f5e9378f
Add support for WRITEVERIFY10/12/16
2012-07-14 08:19:43 +10:00