GNOME Bugzilla – Bug 168175
gamin prevents removable media from being removed.
Last modified: 2005-03-04 23:11:01 UTC
Please describe the problem: gamin 0.0.24 (the latest that comes with Fedora Core 3) prevents hotplug media (like my USB hard disk) from being gracefully removable. gamin does this by keeping an open filehandle on some directory which is on the USB hard disk. I can use lsof to see this in action immediately after I login: $ /usr/sbin/lsof |grep media gam_serve 13990 jbn 56r DIR 8,32 286720 9712 /media/usbdisk/.Trash-jbn I set the following in my ~/.gaminrc: $ cat ~/.gaminrc poll /media/* I know that's supposed to be the default, but I wanted to be sure, so I said it again in my rc. Steps to reproduce: 1. Log in. 2. Turn on and mount a USB HD. 3. Log out. 4. Log in. 5. Open a terminal and type "/usr/sbin/lsof | grep ^gam_serv" to see what gam_server has opened. Actual results: gam_server holds an open filehandle on something from the mounted volume and this prevents me from umounting the volume. When I kill gam_server I can sometimes free the filehandle and use Nautilus to umount the volume. Expected results: I expected gam_server to not retain open filehandles on mounted media unless I was doing something with the filehandle (an open Nautilus window, a terminal window where my PWD is /media/usbdisk/, etc.). Does this happen every time? Yes. Other information: It's nicer that gamin is a user process, so I can kill it without being root. But this is the same problem that plagued fam in FC2 (it often prevented Nautilus from ejecting CD-ROMs).
Fixed with gamin 0.0.25, update and "killall gam_server', Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 169027 ***