GNOME Bugzilla – Bug 337714
Trash does not work with NFSv4
Last modified: 2008-09-06 19:10:47 UTC
Please describe the problem: When moving an item to trash on an NFSv4 mounted filesystem (such as /home), the trash icon does not change to show that it contains items; opening the "trash:" folder does not show contents; "Empty Trash function is either grayed out, or does not remove the file. However, if you migrate to the "/home/username/.Trash" directory, you can see the item, manually delete it, and Gnome will present you with the "Do you want to delete this item from Trash" popup. If i remount the filesystem with NFSv3, Trash works as expected. Steps to reproduce: 1. Mount your home directory with NFSv4 2. Take any file and move it to trash 3. Open the Gnome Trash folder Actual results: The trash icon does not change to show that it contains items; opening the "trash:" folder does not show contents; "Empty Trash function is either grayed out, or does not remove the file. However, if you migrate to the "/home/username/.Trash" directory, you can see the item, manually delete it, and Gnome will present you with the "Do you want to delete this item from Trash" popup. Expected results: I expect that the trash icon will change to show that there are items in trash and that I could empty the trash folder by using the "Empty Trash" function whether the system is mounted in NFSv3 or NFSv4. Does this happen every time? It happens every time with NFSv4. It never happens with NFSv3. Other information:
Looks like some file monitoring issue? Not sure if it should work on NFS. Nautilus people will know better than me.
Seeing as mounting /home directories via NFS is fairly standard, I would expect that the Nautilus "Trash" services should be available regardless of wich NFS protocol version is in place.
The problem continues to occur with gnome 2.14.1
Are there any reports or activity for this bug. It continues...
The bug continues with Gnome 2.14.3 on Fedora Core 5.
I have a similar problem with an AFS-mounted home and GNOME 2.2 on RHEL3. If I delete a file in the home with "move to trash" using nautilus, the file is moved to ~/.Trash but it is not visible in the trash view of nautilus.
*** Bug 368059 has been marked as a duplicate of this bug. ***
The status of this bug has not improved since 2.14. Are there any updates?
It seems this is due to gnome-vfs, not to nautilus, as John Goerzen pointed out in Debian bug http://bugs.debian.org/403129. I'll attach his patch.
Created attachment 82244 [details] [review] NFSv4 support fixes handling of Trash in Nautilus on NFS /home (John Goerzen) Here's the patch from John Goerzen sent in Debian bug http://bugs.debian.org/403129
John's patch at the Debian bug might fix this problem for NFS4 but not for AFS or other future file systems GNOME doesn't know about. A more general fix would be useful.
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome. If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs. @Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together. General further information: http://en.wikipedia.org/wiki/GVFS Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html