Bug 175098 - Incorrect file size on main window or using calculate occupied space
Summary: Incorrect file size on main window or using calculate occupied space
Status: RESOLVED WORKSFORME
Alias: None
Product: krusader
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Shie Erlich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-14 02:46 UTC by João Ramos
Modified: 2016-01-10 11:30 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Ramos 2008-11-14 02:46:18 UTC
Version:           2.0.0-beta1 (using KDE 4.1.3)
OS:                Linux
Installed from:    SuSE RPMs

There is a bug in krusader about file sizes.
It happened more than once, reporting more or less size than the real one... but with a huge difference.

For instance, this file:
-rw-r--r-- 1 jramos users 4679006208 2008-11-11 05:08 St1cky_Sw33t_T0ur.iso

is reported by krusader like having 366 MiB only.
There are some cases of 4GB files that krusader reports as 16 TiB (it would be nice to have such space in my hard drive).

Another user reported a similar bug saying it could be the character code. I don't recall the names of the files krusader reports as TiB, but I believe St1cky_Sw33t_T0ur.iso does not have any strange character.

Anything you need I would be glad to help.
Many thanks

JR
Comment 1 João Ramos 2008-11-14 11:06:53 UTC
Just got another file:
-rw-r--r-- 1 jramos users 6826942464 2008-11-14 08:17 Mr Bean The Animated Series.iso

krusader reports it with 16,777,216.0 TiB
Comment 2 Maciej Nowakowski 2009-03-24 00:35:04 UTC
I can confirm that bug. In my case krusader fails to print correct file size for some files with polish letters. Those files were copied from fat partition with wrong mount options. For example:

File Rada Wydzia?u.ppt is reported 12 572 672.0 TB
Comment 3 Marcin Gryszkalis 2011-05-07 22:57:55 UTC
Mentioned related: bug 174695
Comment 4 Jekyll Wu 2012-11-14 09:36:42 UTC
(In reply to comment #0)

> There is a bug in krusader about file sizes.
> It happened more than once, reporting more or less size than the real one...
> but with a huge difference.
> 
> For instance, this file:
> -rw-r--r-- 1 jramos users 4679006208 2008-11-11 05:08 St1cky_Sw33t_T0ur.iso
> 
> is reported by krusader like having 366 MiB only.

4679006208B / 1024 / 1024 = 4462MB

 4462MB - 366MB = 4096MB = pow(2, 32) 

That looks like a perfect example of overflow ...

Anyway, I created a file of exactly the same size and krusader showed its size correctly.  Does the problem still exist in 2.4.0-beta3 ?
Comment 5 Jan Lepper 2013-03-04 12:28:09 UTC
needsinfo - see coment 4
Comment 6 Davide Gianforte 2016-01-10 11:30:59 UTC
No response - closing.