scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR
The changeable values were not all-zeros for this mode page, fix it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scsi-disk: let the user customize vendor and product name
This patch adds two new properties vendor and product to SCSI disks.These options let the user customize the inquiry data returned by thedisk.
Signed-off-by: Yan Vugenfirer <yan@ravellosystems.com>...
scsi-disk: make discard asynchronous
By making discard asynchronous, we can reuse all the error handlingcode that is used for other commands.
scsi-disk: move all non-DMA commands to scsi_disk_emulate_command
We want to use separate SCSIReqOps for emulated commands needing anallocated buffer vs. those that are zerocopy when the HBA supportsS/G lists. Ensure that all of the former are in scsi_disk_emulate_command....
scsi-disk: split scsi-disk reqops
Only checks for present medium were still done in scsi_send_commandfor emulated commands. So move those to scsi_disk_emulate_commandand return different SCSIReqOps depending on the kind of command.
Checks for present medium can be done unconditionally for the...
scsi-disk: separate read_data/write_data implementation for emulate_reqops
The previous patch only separated the send_command callback.Use different implementations also for read_data and write_data.The latter is still unreachable, so it aborts for now....
scsi-disk: support emulated TO_DEV requests
This adds the implementation of write_data for the emulatedcommand case. The first time through it asks for more data,the second time it finishes the processing of the command.
MODE SELECT and MODE SELECT can now be re-enabled, but they...
scsi-disk: adjust offsets in MODE SENSE by 2
This will make offsets the same when implementing MODE SELECT. This isbecause MODE SELECT has to deal with both 2-byte and 4-byte headers.Unfortunately, this means that the offsets are now off by two compared...
lsi: avoid redundant tests of s->current != NULL
Simplify the code by checking against req->hba_private directly,and asserting that it is non-NULL before a command is completedor canceled.
scsi-block: remove properties that are not relevant for passthrough
scsi-block is a passthrough device and does not allow customizationof vendor, product, removable, DPOFUA, block size or any other piece ofinformation. Thus, drop DEFINE_SCSI_DISK_PROPERTIES() from the...
View revisions
Also available in: Atom