]> git.proxmox.com Git - mirror_qemu.git/commit
SCSI: Update the sense code for PREVENT REMOVAL errors
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 29 Jul 2012 21:52:03 +0000 (07:52 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 Aug 2012 08:01:35 +0000 (10:01 +0200)
commit93161b69a53241be71e1aab7f792d78d9bfd19d3
tree1ec0f167aafe7a51129ca8de047cd0e1e3688416
parent5e3bc7144edd6e4fa2824944e5eb16c28197dd5a
SCSI: Update the sense code for PREVENT REMOVAL errors

Change the sense codes for failures to eject a device that is locked
by PREVENT_ALLOW_MEDIUM_REMOVAL from
the generic MEDIA_LOAD_OR_EJECT_FAILED to the more specific
MEDIUM_REMOVAL_PREVENTED.

The second sense code is more accurate, and is also listed in MMC annex F
for the recommended sense codes for MMC devices while the first sense code is not.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-bus.c