Bug 59326

Summary: eject -a off disables also auto-close
Product: [Retired] Red Hat Linux Reporter: Stas Sergeev <stssppnn>
Component: ejectAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
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: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to work around the problem none

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.