[PATCH] enable trash usage on NTFS partitions

Yann Rouillard <[email protected]>
Newsgroups gmane.comp.gnome.vfs.general
Message-ID <[email protected]>
Hi,

Trash usage is currently not allowed on NTFS partitions although NTFS 
now supports write access.

This simple patch allows trashing on NTFS partitions.

The corresponding bugzilla issues is 
http://bugzilla.gnome.org/show_bug.cgi?id=488699

Note that nautilus currently doesn't use the 
_gnome_vfs_filesystem_use_trash function which leads to bug like this 
http://bugzilla.gnome.org/show_bug.cgi?id=157259 and 
https://bugs.launchpad.net/ubuntu/+source/gnome-vfs2/+bug/140968
I will post another patch for this bug.

Yann

_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
enable_trash_on_ntfs.patch (text/x-patch, 710 B)
diff -Nur gnome-vfs2-2.20.0/libgnomevfs/gnome-vfs-filesystem-type.c gnome-vfs2-2.20.0.new/libgnomevfs/gnome-vfs-filesystem-type.c
--- gnome-vfs2-2.20.0/libgnomevfs/gnome-vfs-filesystem-type.c	2007-10-20 18:23:53.000000000 +0200
+++ gnome-vfs2-2.20.0.new/libgnomevfs/gnome-vfs-filesystem-type.c	2007-10-20 18:24:24.000000000 +0200
@@ -65,7 +65,7 @@
 	{ "msdosfs"  , N_("MSDOS Volume"), 0 },
 	{ "nfs"      , N_("NFS Network Volume"), 1 },
 	{ "nfs4"     , N_("NFS Network Volume"), 1 },
-	{ "ntfs"     , N_("Windows NT Volume"), 0 },
+	{ "ntfs"     , N_("Windows NT Volume"), 1 },
 	{ "nwfs"     , N_("Netware Volume"), 0 },
 	{ "proc"     , N_("System Volume"), 0 },
 	{ "procfs"   , N_("System Volume"), 0 },
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.