Re: [Nautilus-list] large file support working in gnomevfs butnot nautilus



On Thu, Feb 07, 2002 at 04:22:16PM -0800, Darin Adler wrote:
> 
> The function that's used to format a file size for display is
> nautilus_file_get_size_as_string, which calls
> gnome_vfs_format_file_size_for_display.

Indeed.  I got this far in my analysis.  The thing is, I put a
"fprintf(stderr, ...)" type of debug into
gnome_vfs_format_file_size_for_display() to print each call to it, the
bytes value and it's "pretty print" conversion of it.  For the files
>2GB, the function is not even called!  

Further analysis with debugging fprintfs reveals that in
nautilus_file_get_size_as_string at
~libnautilus-private/nautilus-file.c:4086, in the code block:

    if (nautilus_file_info_missing (file, GNOME_VFS_FILE_INFO_FIELDS_SIZE)) {
        return NULL;
    }

for all of my >2GB files, that function returns NULL there.  For
whatever reason, GNOME_VFS_FILE_INFO_FIELDS_SIZE is missing.

I don't believe this to be simply a display problem but rather the
problem is in the collecting and/or storing of the data about the
file.

Any more ideas?

b.

-- 
Brian J. Murrell




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]