[gamin] gam_server hogs media

Hi, All:

This Desktop thing is getting entirely too friendly at times. I plug a
USB stick, open file on it with a Gnome application, and bingo, it cannot
be unmounted (with right-click). This is an FC3.

When I looked at it closer, it turned out that gam_server will happily
grab and hold just about anything if GNOME comes anywhere near it. Behold:

[root localhost zaitcev]# mount /dev/uba1 /mnt/tmp
[root localhost zaitcev]# ls /mnt/tmp
ranma_1x01.avi  vmlinuz-2.6.10-ub
[root localhost zaitcev]# df -ka /mnt/tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/uba1              1023696    185696    838000  19% /mnt/tmp
[root localhost zaitcev]# 

 <------ At this point, run something GNOME, like Totem. Bring file dialog,
         go to "Filesystem", then /mnt/tmp. You do not have to open any
         files, visiting is sufficient to make GNOME interested. Cancel
         dialog and exit application.

[root localhost zaitcev]#
[root localhost zaitcev]# umount /mnt/tmp
umount: /mnt/tmp: device is busy
umount: /mnt/tmp: device is busy
[root localhost zaitcev]# fuser -m /mnt/tmp
/mnt/tmp:             3729
[root localhost zaitcev]# ps auxw |grep 3729
zaitcev   3729  3.9  0.2  3412 1272 ?        S    10:43   1:36 /usr/libexec/gam_server
root      4089  0.0  0.1  3724  664 pts/0    S+   11:23   0:00 grep 3729
[root localhost zaitcev]#

For crying out loud... Old bad FAM did not do this.

I have read the Gamin FAQ and I know that I can exclude certain paths.
I just cannot understand why would it be necessary to do it. Does
inotify require directories to be open by its clients? If so, it's
broken by design.

-- Pete

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]