scsi-disk: Track tray locked state
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:58:44 +0000 (18:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:20 +0000 (15:17 +0200)
commit4ed8ad326eb214d6f04f88f670b68eda10aa2a2d
tree121f72f462c6d261cc13486f443ebbc20c904b6a
parente4159b937ef138be760b0dab8ade36c73ef0dd63
scsi-disk: Track tray locked state

We already track it in BlockDriverState.  Just like tray open/close
state, we should track it in the device models instead, because it's
device state.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c