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 157259 - Semi-functional trash with homedir in trash-less filesystem
Semi-functional trash with homedir in trash-less filesystem
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: Trash
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-11-03 17:29 UTC by Alexander Boström
Modified: 2008-02-03 20:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test if a filesystem support trash before using it (1.77 KB, patch)
2007-10-20 18:57 UTC, Yann Rouillard
none Details | Review

Description Alexander Boström 2004-11-03 17:29:20 UTC
1. Start GNOME 2.8 with homedir in AFS.
2. Move a file into the wastebasket.

The wastebasket is still empty, but the file is in ~/.Trash.

If I enable trash on AFS in gnome-vfs/libgnomevfs/gnome-vfs-filesystem-type.c,
the wastebasket works as expected.

I suppose the wastebasket should either ask to delete files, or perhaps not be
visible at all, if the homedir is in a trashless filesystem.

(I will file another bug about enabling trash on AFS.)
Comment 1 Christian Neumair 2005-05-07 09:42:12 UTC
Thanks for your bug report!
Can you still reproduce this behavior? I've not yet come across that file
system, but at least for my trash-less sftp mount, nautilus 2.10 informs me that
the file can't be moved to trash and offers me the delete operation.
Comment 2 André Klapper 2006-07-04 09:29:41 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information Christian asked for.
Thanks!
Comment 3 Alexander Boström 2006-07-04 13:50:38 UTC
I'm sorry about this late comment.

I've reproduced this behavior on Fedora Core 5 (gnome-vfs2-2.14.2, nautilus-2.14.1).

To reproduce this, I think you need to have the home directory in a trash-less filesystem.
Comment 4 Yann Rouillard 2007-10-20 18:17:08 UTC
The problem happens on local filesystems which should not support trashing.

The reason is that gnomevfs uses a table which says if a filesystem can use a trash or not. As Alexander Bostrom said, it is located in gnome-vfs/libgnomevfs/gnome-vfs-filesystem-type.c, it's the fs_data structure.

However this information is not always used and for example Nautilus will not test if the filesystem support trashing and will happily create a Trash and move files in Trash on a filesystem which is not supposed to support it.

This lead to this following bug and also this one:
https://bugs.launchpad.net/ubuntu/+source/gnome-vfs2/+bug/140968

Comment 5 Yann Rouillard 2007-10-20 18:57:43 UTC
Created attachment 97526 [details] [review]
Test if a filesystem support trash before using it  

Add the missing test in Nautilus so Trash is not used if the filesystem doesn't support it.
Comment 6 André Klapper 2007-12-12 03:13:55 UTC
gnome 2.22 will not use gnome-vfs anymore and has a completely rewritten implementation of this (gio/gvfs).
Comment 7 Pavel Šefránek 2008-02-03 20:37:55 UTC
Closing this because it's gnome-vfs related.

Please test it with the new gio/gvfs implementation and then you can reopen it.