Bug 89908

Summary: magicdev keeps polling harddrive
Product: [Retired] Red Hat Linux Reporter: Eric Wood <eric>
Component: magicdevAssignee: John (J5) Palmieri <johnp>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: da+rhbugs, jkeck
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-25 17:47:37 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:

Description Eric Wood 2003-04-29 17:11:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461)

Description of problem:
magicdev is stat'ing /etc/mtab and open'ing /dev/cdrom every second.  The 
filesystem must flush the atime change every few seconds.  So, how about 
stat'ing /proc/mounts instead?  Why does /mnt/mtab even exist nowadays?

Version-Release number of selected component (if applicable):
magicdev-1.1.4-4

How reproducible:
Always

Steps to Reproduce:
1. startx
2. strace -p <pid_of_magicdev>

    

Actual Results:  strace will show you the stat'ing and opening of /etc/mtab 
and /dev/cdrom

Expected Results:  use fam or /proc.

Additional info:

Comment 1 Owen Taylor 2003-04-29 17:58:08 UTC
Note that stat() does not update atime.


Comment 2 Eric Wood 2003-04-29 19:46:28 UTC
No, but the open() does.

Comment 3 David Aspinall 2004-04-30 08:52:59 UTC
I just observed this behaviour on a clean install of Fedora Core 2
test 3, magicdev-1.1.6.  The observable consequence on my laptop
(Fujitsu S6120) is that the CDROM LCD icon flashes constantly,
*unless* there is a CD in the drive.  This is quite annoying.


Comment 4 John (J5) Palmieri 2004-08-25 17:47:37 UTC
Closing. Magicdev has been replaced by gnome-volume-manager in devel
branch.