From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.17 i686)
Description of problem:
eject -a off must disable only eject on unmount, but it also disables auto-close
on mount, which is annoying. It uses ioctl() CDROMEJECT_SW, but kernel messes
this ioctl with auto-close. As a workaround CDROM_[SEC|CLEAR]_OPTIONS can be
used with CDO_AUTO_EJECT as argument.
The attached patch does this and also fixes a warning about implicit exit().
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. eject -a off
3. mount /mnt/cdrom
Actual Results: mount: No medium found
Expected Results: closed tray and mounted cd-rom
Well, this is a kernel bug probably...
Created attachment 44540 [details]
Patch to work around the problem
it's added in eject-2.0.12-3. Thanks for your patch file.