nautilus_file_get_volume_free_space (NautilusFile *file)
{
	goffset free_space;
	GFileInfo *info;
	GFile *location;
	char *res;

	res = NULL;

	location = nautilus_file_get_location (file);
	info = g_file_query_filesystem_info (location, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, NULL, NULL);
	if (info) {
		if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE)) {
			free_space = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
			res = g_format_size_for_display (free_space);
		}
		g_object_unref (info);
	}
	g_object_unref (location);

	return res;
}
nautilus_file_get_volume_free_space (NautilusFile *file)
{
	goffset free_space;
	GFileInfo *info;
	GFile *location;
	char *res;

	res = NULL;

	location = nautilus_file_get_location (file);
	info = g_file_query_filesystem_info (location, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, NULL, NULL);
	if (info) {
		if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE)) {
			free_space = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
			res = g_format_size_for_display (free_space);
		}
		g_object_unref (info);
	}
	g_object_unref (location);

	return res;
}