OSDN Git Service

scsi-disk: adjust offsets in MODE SENSE by 2
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Jul 2012 14:08:24 +0000 (16:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:09 +0000 (17:44 +0200)
commitef405611168015cfd28669e04506bb99d7c39288
treeafd4ad8b7c4e757d4ee3991df6c9c244fadd0425
parentaf6d510ddbef5e0be9ce40464c2bf46da58eacf2
scsi-disk: adjust offsets in MODE SENSE by 2

This will make offsets the same when implementing MODE SELECT.  This is
because 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
to the descriptions in the SCSI specs, which include the header.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c