After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 134667 - gnome-vfs-daemon blocks unmounting $HOME
gnome-vfs-daemon blocks unmounting $HOME
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Other
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-17 19:44 UTC by W. Michael Petullo
Modified: 2006-12-31 00:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description W. Michael Petullo 2004-02-17 19:44:25 UTC
The gnome-vfs-daemon process remains running for some time after a
user logs out.  Because gnome-vfs-daemon runs with $HOME as its
CWD, its existence will block the unmounting of $HOME.

This presents a major problem with automatically mounted/unmounted home
directories.

Gconfd-2 had a similar problem.  Gnome-session now runs gconftool-2
--shutdown to fix this when a user logs out (see bug #97361).  A similar
technique could be used with gnome-vfs-daemon or I think
gnome-vfs-daemon could simply change its CWD to be outside $HOME.
Comment 1 Christophe Fergeau 2004-07-20 20:52:57 UTC
Is it still happening ?
Comment 2 Daniel Kahn Gillmor 2004-11-01 21:18:44 UTC
yes, i am still seeing this happen on a system running debian sarge, using GNOME
2.6.2 

[sysadmin@mau sysadmin]$ apt-show-versions libgnomevfs2-common
libgnomevfs2-common/testing uptodate 2.6.2-2
[sysadmin@mau sysadmin]$ 

i'm encountering it as pam_mount attempts to unmount the home directory at
logout, and gnome-vfs-daemon is holding open $HOME.

switching the CWD to / seems like it would resolve this particular problem
(though it would indeed cause problems with core dumps).

this bug is related to bug #134666 and bug #134668
Comment 3 Kjartan Maraas 2005-04-17 15:36:09 UTC
gnome-vfs-daemon is terminating automatically here. Not sure how many seconds
it's still running after logout, but maybe you could sleep for a while before
unmounting $HOME?
Comment 4 Federico Mena Quintero 2006-11-08 16:40:43 UTC
Can you please try with a newer version of GNOME?  Gnome-vfs-daemon has become much more robust since GNOME 2.6.
Comment 5 W. Michael Petullo 2006-12-31 00:15:10 UTC
I no longer unmount my home directory when I log out.  So, it is difficult for me to test this.  I did add some checks to gdm's PostSession script and everything seems fine now.  The gnome-vfs-daemon process does not seem to hold $HOME as its CWD after I log out.  However, as I mentioned, my setup is very different from when I originally submitted this bug.

I will close this bug.  If someone continues to have trouble with this, then they may reopen this bug.