diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-11-26 15:34:15 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:40 -0600 |
commit | 88f8a5ed0f4f1454ba53661fed0f676180e9be32 (patch) | |
tree | c9f9977e351e10c112f1e9fe41c22abb0c72b67f /hw/scsi-disk.c | |
parent | 39ec9a504ddebc9432de892c185447af5b192f2a (diff) |
scsi-disk: restruct emulation: VERIFY
Move VERIFY emulation from scsi_send_command() to
scsi_disk_emulate_command().
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-disk.c')
-rw-r--r-- | hw/scsi-disk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 1507bcd1f6..2910782926 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -794,6 +794,8 @@ static int scsi_disk_emulate_command(SCSIRequest *req, uint8_t *outbuf) outbuf[3] = 8; buflen = 16; break; + case VERIFY: + break; default: goto illegal_request; } @@ -912,6 +914,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, case GET_CONFIGURATION: case SERVICE_ACTION_IN: case REPORT_LUNS: + case VERIFY: rc = scsi_disk_emulate_command(&r->req, outbuf); if (rc > 0) { r->iov.iov_len = rc; @@ -940,9 +943,6 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, r->sector_count = len * s->cluster_size; is_write = 1; break; - case VERIFY: - DPRINTF("Verify (sector %" PRId64 ", count %d)\n", lba, len); - break; default: DPRINTF("Unknown SCSI command (%2.2x)\n", buf[0]); fail: |