Ronnie Sahlberg
8aa6d9de8f
TESTS: Add a test for COMPARE_AND_WRITE when the data to verify does not match
2013-09-23 21:58:55 -07:00
Ronnie Sahlberg
9f1a28f753
TESTS: Add an initial simple test for COMPARE_AND_WRITE
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2013-09-22 17:02:30 -07:00
Ronnie Sahlberg
e7df1af3b9
TESTS: READ10 and STARTSTOPUNIT should fail while sanitize is in progress
...
Other commands should fail too but we dont need to test them all
2013-07-21 14:33:22 -07:00
Ronnie Sahlberg
d901700633
Add a test that a sanitize operation will continue across resets
...
Verify that abort task/abort task set/lun reset/warm reset/cold reset
and full blown session failures will not affect a sanitize that is in
progress
2013-07-21 14:11:13 -07:00
Ronnie Sahlberg
b1b3c603af
TESTS: clear unit attention after changing SWP settings in the readonly test
2013-07-21 09:20:00 -07:00
Ronnie Sahlberg
52a83e91af
Add POWER_CONDITION modepage marshalling/unmarshalling
2013-07-20 15:35:38 -07:00
Ronnie Sahlberg
a3283fbafd
TESTS: Add a test that SANITIZE fails when SWP is on.
2013-07-09 02:27:30 -07:00
Ronnie Sahlberg
6e5a5745aa
TESTS: Add a test that SANITIZE commands fail when there is a RESERVATION
2013-07-09 01:51:00 -07:00
Ronnie Sahlberg
6a65874dd9
TESTS: Add helper function for READ10 that returns a task*
2013-07-05 16:14:21 -07:00
Ronnie Sahlberg
d8d10c0a44
TESTS: Sanitize check that after block erase all blocks are unmapped
2013-07-05 16:04:29 -07:00
Ronnie Sahlberg
dcb223badc
Use PRIu64 for format string
2013-06-29 12:23:55 -07:00
Bart Van Assche
12f93b60c7
Retry RESERVE6/RELEASE6 upon BUS RESET UA
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
2013-06-08 07:45:18 -07:00
Ronnie Sahlberg
10d101cf51
TESTS: Try reading the BlockDeviceCharacteristics VPD page on startup
2013-05-26 19:53:27 -07:00
Ronnie Sahlberg
b193e08be8
Tests: Update the SANITIZE tests
2013-05-26 19:36:35 -07:00
Ronnie Sahlberg
e5e8d7e3ef
TESTS: Add a simple test for SANITIZE OVERWRITE
2013-05-26 11:48:45 -07:00
Ronnie Sahlberg
eebd04e613
Add initial support for SANITIZE and a simple test to generate this opcode.
2013-05-25 16:02:02 -07:00
Ronnie Sahlberg
ec5855c6b2
fix incorrect check in test
2013-05-19 08:42:10 -07:00
Ronnie Sahlberg
c9ee8525b2
TESTS: Add a test for the reprot one command reporting options for
...
REPORT SUPPORTED OPCODES.
Opcodes that are listed in the full list of all supported opcodes as taking
a service action should work to ask reporting option 2 (uses service action)
from but fail when asked for option 1 (no service action)
Similarly, opcodes that are flagged as not taking a service action should
work when used with option 1 but fail with option 2.
2013-05-19 07:27:33 -07:00
Ronnie Sahlberg
709410b1d7
TESTS: Add some REPORT SUPPORTED OPCODES tests
...
Add a simple test that it works or is not implemented.
Add a RCTD test to verify that with this flag clear we get command descriptors without CTDP set and with it set we get command descriptors with CTDP set and a timeout descriptor
2013-05-18 13:56:02 -07:00
Ronnie Sahlberg
864bf81c56
TESTS: Test that WRITESAME10/16 unmap can handle big number of logical blocks when unmapping.
...
If BLockLimits->MaxWriteSameLength is 0 (no limit) or >=256
then verify that both WRITESAME10 and WRITESAME16 can unmap with a
number of blocks == 2 byte field.
If not, then verify that a 256 block unmap results in INVALID FIELD IN CDB
If BLockLimits->MaxWriteSameLength is 0 (no limit) or >=65536
then verify that WRITESAME16 can unmap with a
number of blocks == 3 byte field.
If not, then verify that a 65536 block unmap results in INVALID FIELD IN CDB
From discussions on linux-scsi there are devices that support WRITESAME16
but where the implementation only looks at the low 2 bytes of the 4 bytes for
num-blocks in the CDB.
This added test aims to find and flag such devices.
2013-05-15 19:50:41 -07:00
Ronnie Sahlberg
dd46f3acf0
TESTS: Keep the LogicalBlockProvisioning VPD around after we read it during
...
test startup.
2013-05-14 20:25:42 -07:00
Ronnie Sahlberg
f9fb1e0ee3
TESTS: ReadCapacity16 is also mandatory in SBC-2 when INQ->PROTECT is set.
...
Check for this in the support functions and return error.
2013-05-12 21:19:51 -07:00
Ronnie Sahlberg
ee689ee3fb
TESTS: Update the protection tests
2013-05-12 08:06:08 -07:00
Ronnie Sahlberg
5135836ee5
TESTS: keep the unmarshalled std inq structure around
2013-05-11 17:07:59 -07:00
Ronnie Sahlberg
4a8d967541
Add support for synchronous command timeout.
...
Default to 0 meaning no timeout.
Implement a test for iSCS to test what happens if we send a command
with CMDSN being higher than the target allows.
In this case we dont strictly know what will happen, just that what should
NOT happen is the target responding with success.
But we have to be prepared for any kind of failure, including a timeout,
scsi sense, or even iscsi reject or session failure.
2013-04-29 20:42:33 -07:00
Ronnie Sahlberg
f8e317c355
TESTS: READ6 is optional(==obsolete)
2013-04-27 16:22:58 -07:00
Ronnie Sahlberg
94d048afae
TESTS: Persistent reserve in/out are optional
2013-04-27 14:09:19 -07:00
Ronnie Sahlberg
2627a8845e
TESTS: add a flag --usb so we can clamp all i/o to at most 120k
...
Add checks for maximum tranfer length to all commands that are limited
by BlockLimits/MTL
2013-04-27 09:59:59 -07:00
Ronnie Sahlberg
c866787dcb
TESTS: read12 is optional, should make test skip, not fail
2013-04-27 07:43:24 -07:00
Ronnie Sahlberg
1331656f85
TESTS: ORWRITE is optional, lack os support should skip the test not fail it
2013-04-26 17:52:55 -07:00
Ronnie Sahlberg
e33194d94a
TESTS: WRITEVERIFY10/12/16 are all optional.
...
Update the helpers to return -2/not supported on invalid operaction code.
Update all tests to accept that the opcode might be missing and abort the test without failing.
2013-04-25 17:41:13 -07:00
Ronnie Sahlberg
b5804ee499
TESTS: Update WRITE10/12 to allow it to fail with invalid operation code. Both these opcodes are Optional in all SBC standards.
2013-04-23 21:29:25 -07:00
Ronnie Sahlberg
ee666ae451
TESTS: WRITE16 is optional so update the tests to allow WRITE16 to be missing and just make the test be [SKIPPED]
2013-04-23 21:15:28 -07:00
Ronnie Sahlberg
79f54c5e06
TESTS update all read16 tests to fail/skip on illegal opcode depending on whether the device claims support for it or not (mandatory in sbc-3, optional prior)
2013-04-22 17:31:50 -07:00
Ronnie Sahlberg
af6d1c9c13
Add a test for mandatory opcodes for SBC devices.
...
Note that Read16/Readcapacity16 are mandatory on SBC3 but not prior.
Not all mandatory opcodes are tested for yet.
2013-04-21 14:50:41 -07:00
Ronnie Sahlberg
ecfe404316
iscsi-support.c does not need popt.h
2013-04-21 10:03:34 -07:00
Ronnie Sahlberg
808eed9680
Make task->residual a size_t instead of an int
...
Update and improve the log messages for failures for the read10 invalid test
2013-03-23 11:23:02 -07:00
Lee Duncan
510883f28f
fix reregister to check for resvn conflict
...
According to SPC, an attempt to register on
a registeried I_T Nexus with the incorrect
reservation key should produce a reservation
conflict.
2013-03-22 17:57:51 -07:00
Lee Duncan
cfc83f0b4f
Reservation type not needed to register.
2013-03-22 17:56:59 -07:00
Ronnie Sahlberg
6c0fd5cfa3
TESTS: Add RESERVE6/RELEASE6 tests
2013-03-21 19:41:32 -07:00
Ronnie Sahlberg
ec70169380
TEST: Add test for the supported VPD pages and that we can read them
2013-03-12 18:41:57 -07:00
Ronnie Sahlberg
e84b71af15
TEST: Add test for EVPD bit for INQUIRY commands
2013-03-12 18:29:24 -07:00
Ronnie Sahlberg
0bc415761a
TESTS: Add test for standard inquiry page
2013-03-10 19:02:45 -07:00
Ronnie Sahlberg
d288d5a8b6
TESTS: Add tests for prevent/allow medium removal
2013-03-03 10:05:57 -08:00
Ronnie Sahlberg
a2fd736930
TESTS: Add tests for medium access commands when medium is ejected
2013-03-03 09:26:34 -08:00
Ronnie Sahlberg
44c789c9c8
TESTS: Add tests for STARTSTOPUNIT
2013-03-02 16:53:40 -08:00
Lee Duncan
8493ec5837
Added persistent reservation ownership tests.
...
Created tests for all persistent reservation types that
verifies reservation ownership based on reservation
type.
2013-02-24 08:19:30 -08:00
Ronnie Sahlberg
41754b45e8
TESTS: Add tests for ORWRITE
2013-02-19 19:30:51 -08:00
Ronnie Sahlberg
fc1b2697d4
TESTS: Add tests for WRITEVERIFY10/12/16
2013-02-18 20:16:41 -08:00
Ronnie Sahlberg
02010f9157
TESTS: Add tests that medium changing commands fail for readonly devices
2013-02-18 19:28:53 -08:00