From 864b0d690edd5ba945571bb3715e71b5e5b1f65b Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Wed, 19 Mar 2008 14:07:00 +0000 Subject: [PATCH] consider nfs4 mounts as G_UNIX_MOUNT_TYPE_NFS (Closes: #523338) 2008-03-19 Sebastien Bacher * gunixmounts.c: (guess_mount_type): consider nfs4 mounts as G_UNIX_MOUNT_TYPE_NFS (Closes: #523338) svn path=/trunk/; revision=6737 --- gio/ChangeLog | 5 +++++ gio/gunixmounts.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 2d3f3a0..879d395 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-03-19 Sebastien Bacher + + * gunixmounts.c: (guess_mount_type): + consider nfs4 mounts as G_UNIX_MOUNT_TYPE_NFS (Closes: #523338) + 2008-03-19 Alexander Larsson * gfile.c: diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index c04cd47..eadbf09 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -1595,7 +1595,8 @@ guess_mount_type (const char *mount_path, (strcmp (filesystem_type, "iso9660") == 0) || (strcmp (filesystem_type, "cd9660") == 0)) type = G_UNIX_MOUNT_TYPE_CDROM; - else if (strcmp (filesystem_type, "nfs") == 0) + else if ((strcmp (filesystem_type, "nfs") == 0) || + (strcmp (filesystem_type, "nfs4") == 0)) type = G_UNIX_MOUNT_TYPE_NFS; else if (g_str_has_prefix (device_path, "/vol/dev/diskette/") || g_str_has_prefix (device_path, "/dev/fd") || -- 2.7.4