Bug 162184 - Konqueror doesn't count files correctly in some situations
Summary: Konqueror doesn't count files correctly in some situations
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-16 21:56 UTC by Mathias Kosch
Modified: 2011-12-31 03:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Kosch 2008-05-16 21:56:25 UTC
Version:            (using KDE 3.5.8)
Installed from:    I Don't Know
OS:                Linux

In some situations Konqueror won't count the number of files inside a directory correctly.

The effect was reproduced with openSUSE 10.3 (Konqueror 3.5.7, ntfs-3g 1.2310) and Knoppix 5.3 (KDE 3.5.8, I guess) when listing the properties of one directory with a large number of files (about 7000) from an NTFS volume mounted by ntfs-3g. After selecting the folder containing all of the files and opening its property dialog, in many times wrong numbers for file count and sizes are shown. The wrong numbers are not constant and sometimes change after recalculating them, seldomly even showing the correct value. When opening the folder all files seem to be listed correctly and the correct number for file count is shown in the status bar.
This effect couldn't be reproduced with other file systems. (After managing to copy all files to EXT3 and opening the properties dialog the correct numbers where shown apparently.)

This effect also leads to (silent) loss of data when copying the directory to another location since in most cases not all files are copied. (I assume only as many files are copied as Konqueror counts before.) However, copying the files using "cp" command worked for me.

For reproduction, I created a gzip compressed NTFS image containing a single folder with a huge number of files (and some smaller folders). The folder actually contains an older version of the php manual.
My first try was to create the file system using linux ntfs utilities, but the effect couldn't be reproduced. Then I created a new NTFS file system in the original volume using (a nearly patched) Windows 2000, copied the files onto it and finally could reproduce the effect. (This way I excluded the possibility that my previous NTFS file system may have been damaged.)

You can find the gzipped NTFS image at the following location: http://www.mkosch.de/ntfs.img.gz
(Download size is about 8 MB. I hope not everyone will download it since I've got only 20 GB traffic.)

After downloading, extract it and mount it, using file system type "ntfs-3g". Be aware that the uncompressed image is about 2 GB big!
Afterwards, open Konqueror and go to the location of the mount point. Inside, you will see a folder called "php". Right click on it (if your mouse is right-handed) and select "Properties" (actually I don't know the exact English text since my Konqueror shows German). If necessary, repeat that step. You should notice varying file count and size. (I mainly got the following values for file count: 719, 1243, 1813, 1924, 2051, 2195, 2361, 7030)
Comment 1 theron 2008-05-17 05:57:52 UTC
 Is this the same thing as when you open a large file, especially a zip file, and the counter start counting up ?
Comment 2 Mathias Kosch 2008-05-17 20:52:01 UTC
> Is this the same thing as when you open a large file,
> especially a zip file, and the counter start counting up ? 
What do you mean with "large"? Is it large in size or large in file count or both?

I gave it a try and zipped the whole php folder used in the previously linked NTFS image. After opening it in Konqueror using the "zip:/" protocol, I selected the folder's properties and refreshed the file count for several times. Everything (7030 files and about 35 MiB) was shown correctly and I could not reproduce the previously mentioned effect this way.
Comment 3 Dawit Alemayehu 2011-12-31 03:03:42 UTC
KDE 3 is no longer maintained. If this issue still applies to Konqueror in KDE 4, which uses Dolphin's part for file management, feel free to reopen this ticket.