mc reports only 2147483 bytes [...]
if it was kilobytes: 2147483647==2**31-1?
Indeed! I found that the problem was that _FILE_OFFSET_BITS in my config.h was not
set. After I set it to 64 the problem disappeared. Apparently mc now uses 64-bit
values.
However there is another problem: now that
Indeed there was an error in sort_size function: it is declared as int, but it returns
a value of the type off_t which may be double. This results in a casting error and
wrong sorting for very big files. The patch is attached.
--
__
The Command / Show directory sizes menu item gives wrong values. For example, du -b
gives 5033406464 (approx 5Gb) for a subdir but mc reports only 2147483 bytes for the
same subdir. In another example, 35108 Kb is reported by du but 27733K is seen by mc.
Perhaps this latter case can be ascribed
On Tue, Jan 14, 2003 at 02:02:34AM -0500, bulia byak wrote:
[...]
mc reports only 2147483 bytes [...]
if it was kilobytes: 2147483647==2**31-1?
[...]
35108 Kb is reported by du but 27733K is seen by mc.
Perhaps this latter case can be ascribed to different methods
of determining file sizes,