#230849 filelight confused by sparse-files and links

Package:
filelight
Source:
filelight
Description:
show where your diskspace is being used
Submitter:
Marco Bodrato
Date:
2010-06-07 16:37:01 UTC
Severity:
normal
#230849#5
Date:
2004-02-02 21:42:48 UTC
From:
To:
If one creates a sparse file on a directory whith:
dd if=/dev/zero bs=1k count=1 seek=1M of=sparse-file

filelight says a lot of disk space is used on that dir... but this is false:

$ ls -l sparse-file
-rw-r--r--    1 .....  .....  1073742848 2004-02-02 22:28 sparse-file
$ du -h sparse-file
4,0K    sparse-file

even worse if the same file has lots of links... after
$ ln sparse-file sparse-file.link

filelight thinks this directory uses 2Gb on disk, while...

$ ls -l
totale 8
-rw-r--r--    2 bodrato  bodrato  1073742848 2004-02-02 22:28 sparse-file
-rw-r--r--    2 bodrato  bodrato  1073742848 2004-02-02 22:28 sparse-file.link
bodrato@debian:~/prova$ du -h
4,5K    .

... it uses less than 5Kb

I think this bug is upstream's...

Thank's,
	Marco

#230849#16
Date:
2007-03-03 20:21:46 UTC
From:
To:
forwarded 230849 http://bugs.kde.org/show_bug.cgi?id=135611
thanks