[BUG] '?' sign instead of specific file size

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3498
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

[BUG] '?' sign instead of specific file size

Post by *Flint »

A very fine bug was occasionally found on the Russian forum:
when one have a file with size of 4294967295 bytes (FFFFFFFF in hex!) TC shows a question mark ('?') instead of the size. Also I tried several other sizes - and size 4294967294 is also shown incorrectly (just empty field). See the screenshot here:
http://flint-inc.ru/Temp/tc/FileSizes.png (8 Kb)

Sizes of the files are 429496729n bytes where n.avi is the file name (e.g. 4294967293 for 3.avi).
Also as you can see in the footer, size of the selected files is calculated incorrectly.

Tested under TC 6.53, 6.54, WinXP SP2, NTFS.

PS: Luckily, I have enough free space on my disk to create all these huge files. :lol:
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Can you provide a tool to create a file with a particular filessize?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Flint
Power Member
Power Member
Posts: 3498
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

I used fsutil.exe tool:
fsutil file createnew <name> <size>

Added:
fsutil tool comes with WinXP distribution.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Flint
It's a well known behavior:
http://www.ghisler.ch/board/viewtopic.php?t=7466
ghisler(author) wrote:Short translation: Both filesizes encode special states: Size unknown and not relevant. It's highly unlikely to encouter such filesizes.
Last edited by Lefteous on 2006-02-07, 20:49 UTC, edited 2 times in total.
User avatar
Hacker
Moderator
Moderator
Posts: 13136
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I can remember a topic about this behavior before, can't find it now, though. I guess it is among norfie's deleted posts. Anyways, IIRC Christian said that it is by design, though I don't remember the reason anymore.

Roman
[EDIT: Bah, I knew Lefteous participated in that topic, too, but I didn't remember any keywords to search... :) ]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

2Lefteous
Can you pls translate?
Ambiguity succeeds where honesty dares not venture.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Confirmed.

Another interesting issue:
If you [Ctrl]+[L] on this file you get the correct filesize: 4.294.967.295 bytes
but
Actual space used
on source drive: 4.294.967.296
on target: 4.294.967.297

while
filesize: 4.294.967.294
Actual space used
on source drive: 4.294.967.296
on target: 4.294.967.296
and
filesize: 4.294.967.290
Actual space used
on source drive: 4.294.967.296
on target: 4.294.967.296

these values produces.

And the DirsizeCalc plugin of Lefteous calculates the size correctly.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Flint
Power Member
Power Member
Posts: 3498
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Lefteous
Thank you for pointing me to the thread, I searched by English words only - that's why I didn't found any...

But Christian told that he planned to fix this bug (although he's afraid of possible side-effects). He posted it on June 3, 2005, so, maybe, in 7.0?..
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Considering the fact that filesizes of 4 GB and above are not too uncommon nowadays it is no longer acceptable that these numbers cannot be displayed properly by a filemanager :!:
(Whatever reasons and restrictions 10 years ago may have led to this behaviour is of no relevance any more today. Storing year dates in two bytes variables was considered sufficient once upon a time, too, and we all had to learn that was not sufficient. The same applies to filesizes of 4GB and above. They do occur and have to be displayed properly.)

Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
Flint
Power Member
Power Member
Posts: 3498
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

The problem has been fixed in TC7.0pb3.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Post Reply