Bug 59326 - eject -a off disables also auto-close
eject -a off disables also auto-close
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: eject (Show other bugs)
7.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-02-05 09:42 EST by Stas Sergeev
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-02-05 09:44:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Stas Sergeev 2002-02-05 09:42:35 EST
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 09:44:35 EST
Created attachment 44540 [details]
Patch to work around the problem
Comment 2 Ngo Than 2002-02-05 14:13:19 EST
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.