Bug 59326 - eject -a off disables also auto-close
Summary: eject -a off disables also auto-close
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: eject
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-05 14:42 UTC by Stas Sergeev
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-02-05 14:44:40 UTC
Embargoed:


Attachments (Terms of Use)
Patch to work around the problem (679 bytes, patch)
2002-02-05 14:44 UTC, Stas Sergeev
no flags Details | Diff

Description Stas Sergeev 2002-02-05 14:42:35 UTC
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):


How reproducible:
Always

Steps to Reproduce:
1. eject
2. eject -a off
3. mount /mnt/cdrom


Actual Results:  mount: No medium found

Expected Results:  closed tray and mounted cd-rom

Additional info:

Well, this is a kernel bug probably...

Comment 1 Stas Sergeev 2002-02-05 14:44:35 UTC
Created attachment 44540 [details]
Patch to work around the problem

Comment 2 Than Ngo 2002-02-05 19:13:19 UTC
it's added in eject-2.0.12-3. Thanks for your patch file.


Note You need to log in before you can comment on or make changes to this bug.