mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-14 21:59:32 +00:00
scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands
For the RESERVE and RELEASE commands the length must be zero and xfer_mode must be SCSI_XFER_NONE. Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
f8b6d67251
commit
a5e3d9ef4d
@ -208,6 +208,8 @@ static int scsi_req_length(SCSIRequest *req, uint8_t *cmd)
|
|||||||
case SEEK_6:
|
case SEEK_6:
|
||||||
case WRITE_FILEMARKS:
|
case WRITE_FILEMARKS:
|
||||||
case SPACE:
|
case SPACE:
|
||||||
|
case RESERVE:
|
||||||
|
case RELEASE:
|
||||||
case ERASE:
|
case ERASE:
|
||||||
case ALLOW_MEDIUM_REMOVAL:
|
case ALLOW_MEDIUM_REMOVAL:
|
||||||
case VERIFY:
|
case VERIFY:
|
||||||
@ -319,7 +321,6 @@ static void scsi_req_xfer_mode(SCSIRequest *req)
|
|||||||
case WRITE_BUFFER:
|
case WRITE_BUFFER:
|
||||||
case FORMAT_UNIT:
|
case FORMAT_UNIT:
|
||||||
case REASSIGN_BLOCKS:
|
case REASSIGN_BLOCKS:
|
||||||
case RESERVE:
|
|
||||||
case SEARCH_EQUAL:
|
case SEARCH_EQUAL:
|
||||||
case SEARCH_HIGH:
|
case SEARCH_HIGH:
|
||||||
case SEARCH_LOW:
|
case SEARCH_LOW:
|
||||||
|
Loading…
Reference in New Issue
Block a user