Commit a30f8df3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

fix free space information for ncpfs

svn path=/trunk/; revision=6902
parent 67b2f9a9
2008-05-17 Matthias Clasen <mclasen@redhat.com>
Bug 532965 – Should not return filesystem::free for certain file systems
* glocalfile.c (g_local_file_query_filesystem_info) Don't return
free space for ncpfs.
2008-05-17 Matthias Clasen <mclasen@redhat.com> 2008-05-17 Matthias Clasen <mclasen@redhat.com>
Bug 530196 – _g_local_file_has_trash_dir() doesn't handle st_dev == 0 Bug 530196 – _g_local_file_has_trash_dir() doesn't handle st_dev == 0
......
...@@ -968,7 +968,8 @@ g_local_file_query_filesystem_info (GFile *file, ...@@ -968,7 +968,8 @@ g_local_file_query_filesystem_info (GFile *file,
attribute_matcher = g_file_attribute_matcher_new (attributes); attribute_matcher = g_file_attribute_matcher_new (attributes);
if (g_file_attribute_matcher_matches (attribute_matcher, if (!no_size &&
g_file_attribute_matcher_matches (attribute_matcher,
G_FILE_ATTRIBUTE_FILESYSTEM_FREE)) G_FILE_ATTRIBUTE_FILESYSTEM_FREE))
{ {
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
...@@ -984,7 +985,8 @@ g_local_file_query_filesystem_info (GFile *file, ...@@ -984,7 +985,8 @@ g_local_file_query_filesystem_info (GFile *file,
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, block_size * statfs_buffer.f_bavail); g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, block_size * statfs_buffer.f_bavail);
#endif #endif
} }
if (g_file_attribute_matcher_matches (attribute_matcher, if (!no_size &&
g_file_attribute_matcher_matches (attribute_matcher,
G_FILE_ATTRIBUTE_FILESYSTEM_SIZE)) G_FILE_ATTRIBUTE_FILESYSTEM_SIZE))
{ {
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment