Re: How to fix CDROM/DVD eject mess?

From: Austin S Hemmelgarn
Date: Tue Feb 03 2015 - 08:40:36 EST


On 2015-02-03 07:31, Takashi Iwai wrote:

Then,
udev unlocks the media and issues the SCSI eject ioctl unconditionally
when DISK_EVENT_EJECT_REQUEST event is received. Since SCSI ioctl
doesn't take the open refcount into account, it results in the
forcible eject.

Which again is the expected behavior in the user's view.

What if user doesn't want? e.g. DVD/CD media is being burned?

FWIW, I have seen some drives where either the hardware or the drive firmware ignores the eject button while a write operation is in progress (ie, doesn't appear to even send the event, let alone eject the disk).


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature