Red Hat Bugzilla – Bug 89908
magicdev keeps polling harddrive
Last modified: 2013-03-13 00:45:47 EDT
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):
Steps to Reproduce:
2. strace -p <pid_of_magicdev>
Actual Results: strace will show you the stat'ing and opening of /etc/mtab
Expected Results: use fam or /proc.
Note that stat() does not update atime.
No, but the open() does.
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.
Closing. Magicdev has been replaced by gnome-volume-manager in devel