Kevin Wolf <kw...@redhat.com> writes: > Am 20.07.2011 18:23, schrieb Markus Armbruster: >> Commit aea2a33c made bdrv_eject() obey the locked flag. Correct for >> medium eject (eject_flag set), incorrect for medium load (eject_flag >> clear). See MMC-5 Table 341 "Actions for Lock/Unlock/Eject". >> >> Signed-off-by: Markus Armbruster <arm...@redhat.com> > > SCSI doesn't really matter here, this is about host state. The comment > for bdrv_set_locked only talks about eject, so it's probably right anyway.
For what it's worth, PATCH 28/55 moves this check to the device models, where MMC-5 clearly applies.