Bug 89908 - magicdev keeps polling harddrive
Summary: magicdev keeps polling harddrive
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: magicdev
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John (J5) Palmieri
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-29 17:11 UTC by Eric Wood
Modified: 2013-03-13 04:45 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2004-08-25 17:47:37 UTC


Attachments (Terms of Use)

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.


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