[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: Re: [h-e-w] w32: dired displays wrong filesize
From: |
Eli Zaretskii |
Subject: |
Re: AW: Re: [h-e-w] w32: dired displays wrong filesize |
Date: |
Thu, 26 Apr 2007 23:26:00 +0300 |
> Date: Thu, 26 Apr 2007 12:15:04 +0200
> From: "Maier, Harald" <address@hidden>
> Cc: <address@hidden>
>
>
> Hallo Eli,
>
> what I wrote is wrong. The problem is the function "file-attributes"
> in dired.c.
Of course, because directory_files_internal calls file-attributes to
get the attributes, including size.
> (file-attributes "c:/home/maierha/tmp/tmp.dat")
>
> (nil 1 5 5 (17968 29649) (17968 29649) (17968 29268) 4249180672.0
> "-rw-rw-rw-" nil -6212 9360833)
> (nil 1 5 5 (17968 29652) (17968 29652) (17968 29268) 4283041792.0
> "-rw-rw-rw-" nil -6212 9360833)
> (nil 1 5 5 (17968 29653) (17968 29653) (17968 29268) 1024
> "-rw-rw-rw-" nil -6212 9360833)
Are the offending files larger than 4GB, by any chance? If so, this
is expected: the emulation of `stat' we use simply doesn't support
such large files, since the relevant field of the `stat' structure is
32-bit wide. To support such large files we will need to write stat64
and use 64-bit integers. I don't expect this to happen before v22.1
is released.