Index: gnome-vfs-utils.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-utils.c,v
retrieving revision 1.86
diff -u -r1.86 gnome-vfs-utils.c
--- gnome-vfs-utils.c	27 Aug 2004 13:42:14 -0000	1.86
+++ gnome-vfs-utils.c	22 Oct 2004 05:51:24 -0000
@@ -808,42 +808,19 @@
 	block_size = statfs_buffer.f_bsize; 
 #endif  
 
+	g_free (unescaped_path);
+
 	if (statfs_result != 0) {
-		g_free (unescaped_path);
 		return gnome_vfs_result_from_errno ();
 	}
 
+	/* Some filesystems don't report size information.  Treat these the
+	 * same way as remote filesystems (fixes bug #148297).
+	 */
+	if (statfs_buffer.f_blocks == 0) {
+		return GNOME_VFS_ERROR_NOT_SUPPORTED;
+ 	}
 
-/* CF: I assume ncpfs is linux specific, if you are on a non-linux platform
- * where ncpfs is available, please file a bug about it on bugzilla.gnome.org
- * (2004-03-08)
- */
-#if defined(__linux__)
-	/* ncpfs does not know the amount of available and free space */
-	if (statfs_buffer.f_bavail == 0 && statfs_buffer.f_bfree == 0) {
-		/* statvfs does not contain an f_type field, we try again
-		 * with statfs.
-		 */
-		struct statfs statfs_buffer2;
-		statfs_result = statfs (unescaped_path, &statfs_buffer2);
-		g_free (unescaped_path);
-
-		if (statfs_result != 0) {
-			return gnome_vfs_result_from_errno ();
-		}
-		
-		/* linux/ncp_fs.h: NCP_SUPER_MAGIC == 0x564c */
-		if (statfs_buffer2.f_type == 0x564c)
-		{
-			return GNOME_VFS_ERROR_NOT_SUPPORTED;
-		}
-	} else {
-		/* everything is copacetic... free the unescaped path */
-		g_free (unescaped_path);
-	}
-#else 	
-	g_free (unescaped_path);
-#endif
 	free_blocks = statfs_buffer.f_bavail;
 
 	*size = block_size * free_blocks;
