scsi: Report error when lun number is in use
commit2039511b8f573165420c86380762ae829dc398d9
authorFam Zheng <famz@redhat.com>
Tue, 10 Jun 2014 06:55:58 +0000 (10 14:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Jul 2014 09:54:57 +0000 (14 11:54 +0200)
tree7612c5fdb304b8baf20ea1ce583dd32837a818d0
parentab6d3749c4915cd5692633e321f7745dce06fe77
scsi: Report error when lun number is in use

In the case that the lun number is taken by another scsi device, don't
release the existing device siliently, but report an error to user.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c