Bug#403129: [patch] Bug in gnome-vfs2

John Goerzen jgoerzen at complete.org
Fri Feb 9 20:29:56 CET 2007


retitle 403129 gnome-vfs2: Trash never gets items in it on NFS4 home dirs
reassign 403129 libgnomevfs2-0
tags 403129 patch
thanks

This patch fixes the problem for me.


--- gnome-vfs2-2.14.2.orig/libgnomevfs/gnome-vfs-filesystem-type.c
+++ gnome-vfs2-2.14.2/libgnomevfs/gnome-vfs-filesystem-type.c
@@ -57,6 +57,7 @@
 	{ "msdos"    , N_("MSDOS Volume"), 0 },
 	{ "msdosfs"  , N_("MSDOS Volume"), 0 },
 	{ "nfs"      , N_("NFS Network Volume"), 1 },
+	{ "nfs4"     , N_("NFS Network Volume"), 1 },
 	{ "ntfs"     , N_("Windows NT Volume"), 0 },
 	{ "nwfs"     , N_("Netware Volume"), 0 },
 	{ "proc"     , N_("System Volume"), 0 },
--- gnome-vfs2-2.14.2.orig/libgnomevfs/gnome-vfs-volume-monitor-daemon.c
+++ gnome-vfs2-2.14.2/libgnomevfs/gnome-vfs-volume-monitor-daemon.c
@@ -888,7 +888,8 @@
 		if (vol->priv->device_type == GNOME_VFS_DEVICE_TYPE_UNKNOWN) {
 			vol->priv->device_type = GNOME_VFS_DEVICE_TYPE_CDROM;
 		}
-	} else if (strcmp (mount->filesystem_type, "nfs") == 0) {
+	} else if ((strcmp (mount->filesystem_type, "nfs") == 0) ||
+	           (strcmp (mount->filesystem_type, "nfs4") == 0)) {
 		if (strstr (vol->priv->device_path, "(pid") != NULL) {
 			vol->priv->device_type = GNOME_VFS_DEVICE_TYPE_AUTOFS;
 		} else {





More information about the Pkg-gnome-maintainers mailing list