diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-05-27 10:06:11 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-16 15:52:37 -0500 |
commit | aea2a33c73f28ecd8f10b242ecadddcc79c1c28b (patch) | |
tree | ca6c9a834af6603744cb10af6f88c8c95669969f /softmmu_template.h | |
parent | 2ea42952ee131b90c5286203d5d38deb66d32aec (diff) | |
download | hqemu-aea2a33c73f28ecd8f10b242ecadddcc79c1c28b.zip hqemu-aea2a33c73f28ecd8f10b242ecadddcc79c1c28b.tar.gz |
Prevent CD-ROM media eject while device is locked
Section 10.8.25 ("START/STOP UNIT Command") of SFF-8020i states that
if the device is locked we should refuse to eject if the device is
locked.
ASC_MEDIA_REMOVAL_PREVENTED is the appropriate return in this case.
In order to stop itself from ejecting the media it is running from,
Fedora's installer (anaconda) requires the CDROMEJECT ioctl() to fail
if the drive has been previously locked.
See also https://bugzilla.redhat.com/501412
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'softmmu_template.h')
0 files changed, 0 insertions, 0 deletions