Version: 4.0 (using KDE 3.1.93 (CVS >= 20031028), (testing/unstable)) Compiler: gcc version 3.3.2 (Debian) OS: Linux (i686) release 2.4.22-jb-w4l+bs Create a directory with lots of hard links. Show Konq's properties with that directory, with the "size" of the directory. Konq will count each hard link, instead of counting the actual disk useage, which (IMHO) is wrong. See screenshot (attached)
Created attachment 3165 [details] screenshot showing 'du -sb' vs. Konqueror Actually this shows "du -Lsb", but "du -sb" gives the same results. There aren't any soft links in this directory (pointing out of the dir, anyway).
Indeed, same here with the 3.2.1 Debian Build from unstable: $ du -sch ~/tmp 11M tmp 11M total $ ls -lh ~/tmp | tail -rw-r--r-- 1671 thomas thomas 10M Feb 9 01:28 part995.img -rw-r--r-- 1671 thomas thomas 10M Feb 9 01:28 part996.img -rw-r--r-- 1671 thomas thomas 10M Feb 9 01:28 part997.img -rw-r--r-- 1671 thomas thomas 10M Feb 9 01:28 part998.img -rw-r--r-- 1671 thomas thomas 10M Feb 9 01:28 part999.img (1671 == hardlink count for this file) A rightclick->properties on the directory then falsely claims the size to be 16.3 GB. Note that kdirstat also has this bug, seems to be somewhat deep in KDE.
Hello, this bug still exists (KDE 3.3.1, SuSE 9.1 build). Can anybody please have a look at it? Thank you!
Hello, has anybody had a look at this bug? Konqueror still ignores hard links when calculating directory sizes (i.e. counts the space used by hardlinks multiple times). Thank you!
Hello, Same bug with KDE 3.3.2, Debian testing).
Confirmed, 3.5-svn r475k
it's the same bug as 143088
i confirm this for 4.0.3, easy to reproduce
*** Bug 143088 has been marked as a duplicate of this bug. ***
I confirm this for konqueror 4 and dolphin svn trunk r828814. This is a kdelibs problem. To retrieve the space it goes file by file adding it space, but does not know if the file is a hardlink or not and if it has been added before.
moved to kdelibs which should be a more appropriate product.
*** Bug 283522 has been marked as a duplicate of this bug. ***
*** Bug 250875 has been marked as a duplicate of this bug. ***
Git commit 674ebb6964fa48afb45d8e401e4699bbaa87e6be by David Faure. Committed on 16/10/2011 at 12:01. Pushed by dfaure into branch 'KDE/4.7'. Fix DirectorySizeJob counting hardlinks multiple times. This required to pass the device number and inode number from kio_file to the job, which is only enabled when the details level is set to 3, so as to not impact performance in other cases. It's never too late to fix a bug from 2003. BUG: 67939 FIXED-IN: 4.7.3 M +12 -0 kio/kio/directorysizejob.cpp M +7 -0 kio/kio/udsentry.h M +4 -0 kioslave/file/file.cpp http://commits.kde.org/kdelibs/674ebb6964fa48afb45d8e401e4699bbaa87e6be