John Snow ebde93bf9a ahci-test: test atapi read_cd with bcl, nb_sectors = 0
Commit 9ef2e93f introduced the concept of tagging ATAPI commands as
NONDATA, but this introduced a regression for certain commands better
described as CONDDATA. read_cd is such a command that both requires
a non-zero BCL if a transfer size is set, but is perfectly content to
accept a zero BCL if the transfer size is 0.

This test adds a regression test for the case where BCL and nb_sectors
are both 0.

Flesh out the CDROM tests by:

(1) Allowing the test to specify a BCL
(2) Allowing the buffer comparison test to compare a 0-size buffer
(3) Fix the BCL specification in libqos (It is LE, not BE)
(4) Add a nice human-readable message for future SCSI command additions

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1477970211-25754-4-git-send-email-jsnow@redhat.com
[Line length edit --js]
Signed-off-by: John Snow <jsnow@redhat.com>
2016-11-14 11:15:54 -05:00
..
2016-07-25 13:23:18 -05:00
2016-10-24 15:27:19 +02:00
2016-10-26 08:29:01 -07:00
2016-07-06 10:52:03 +02:00
2016-11-03 14:41:53 +00:00
2016-10-17 19:22:17 +01:00
2016-10-31 10:10:16 +00:00
2016-09-08 18:05:22 +04:00
2016-09-08 18:05:21 +04:00
2016-09-08 17:57:32 +04:00
2016-09-08 17:57:32 +04:00
2016-09-23 11:42:52 +08:00
2016-09-08 17:57:32 +04:00