Ronnie Sahlberg
4a973e9a4e
SCSI: Pass the expected opcode to scsi_cdb_unmarshall()
...
Pass the opcode we expect to the unmarshalling function so it can do a basic
check that we are trying to unmarshalling the right kind of cdb.
2012-11-20 19:16:42 -08:00
Ronnie Sahlberg
890471c8cc
Add support to unmarshall a CDB into a structure and update iscsi-dd
...
Add two new helper functions scsi_get_uint32() and scsi_get_uint16()
2012-11-20 19:00:55 -08:00
Arne Redlich
5194d13e73
scsi-lowlevel: remove scsi_maintenancein_params and finally scsi_task->params too
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 23:28:32 +01:00
Arne Redlich
8baa843d73
scsi-lowlevel: remove scsi_readtoc_params and fix READ TOC format field
...
Set the format field in the READ TOC CDB (lower nibble of byte 2).
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 23:16:45 +01:00
Arne Redlich
551298adfb
scsi-lowlevel: remove scsi_serviceactionin_params and plug potential memleaks
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 22:57:59 +01:00
Arne Redlich
fa158865d2
scsi-lowlevel: remove scsi_modesense6_params
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 22:47:14 +01:00
Arne Redlich
5f414317dc
scsi-lowlevel: remove scsi_inquiry_params and refactor INQUIRY data-in unmarshalling
...
Split the INQUIRY data-in unmarshalling into smaller chunks, fixing some
potential memory leaks along the way.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-18 22:46:04 +01:00
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
Peter Lieven
5e1d011270
SCSI-LOWLEVEL revert changes to scsi-lowlevel
...
The memory tracking code reports memory allocated by iscsi_allocate_pdu_with_itt_flags_size() as lost.
This memory is allocated by the iscsi part of libiscsi, but later freed by the lowlevel scsi part. We
will fix this later by introducing an iscsi_task object.
2012-11-12 15:43:29 +01:00
Peter Lieven
d327ab09c6
MEMORY add wrappers around all mallocs and frees and trace them
...
This patch adds a wrapper around all memory allocations and frees.
The idea is to get warned immediately if the application leaks memory.
Additionally the wrapper functions make it easy to add different
memory allocators or memory pools in the future.
2012-11-03 01:05:57 +01:00
Jon Grimm
1eaca70a52
Add MaintenanceIn: Report Supported Opcodes (all) and testcase.
2012-10-25 12:48:37 -05: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
e55ec72f36
Add Read TOC (0x43) Command Support (and basic testcase).
2012-09-24 10:15:00 -05: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
5639b92d95
Improve documentation for when tasks may be cancelled
2012-08-31 16:18: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
Ronnie Sahlberg
1745f76bef
Add SYNCHRONIZECACHE16 support
2012-07-13 10:19:44 +10:00
Ronnie Sahlberg
a34874289b
Add ascq for WRITE_PROTECTED
2012-07-13 09:43:21 +10:00
Ronnie Sahlberg
6f4afb6edb
MEDIUM_NOT_PRESENT/TRAY-CLOSED/TRAY_OPEN is not an error that blocks a successful connect
2012-07-12 18:55:35 +10:00
Ronnie Sahlberg
cadc1650e1
Add ASCQ for MEDIUM_NOT_PRESENT
2012-07-10 16:40:58 +10:00