Bug 59326 - eject -a off disables also auto-close
Summary: eject -a off disables also auto-close
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: eject   
(Show other bugs)
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ngo Than
QA Contact:
URL:
Whiteboard:
Keywords:
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:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-02-05 14:44:40 UTC
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 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 Ngo Than 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.