Summary: | Filelight doesn't distinguish sparse files | ||
---|---|---|---|
Product: | [Applications] filelight | Reporter: | Stephan Sokolow <kde_bugzilla_2> |
Component: | general | Assignee: | Martin Sandsmark <martin.sandsmark> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | martin.sandsmark, pete, roman.cheplyaka |
Priority: | NOR | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Stephan Sokolow
2006-10-14 07:23:07 UTC
Um... oops. Can someone please move this from i18n-->filelight to filelight-->general? It still happens with filelight 1.0 and KDE 3.5.5. Is there any news about this? Thanks. *** This bug has been confirmed by popular vote. *** Huh, are you sure? Filelight gets the filesize by stat()ing, and ST_NBLOCKS(statbuf) * ST_NBLOCKSIZE, which should be the actual number of blocks on the disk multiplied with block size (statbuf.st_size would be the normal "size", which should be larger than the blocks*blocksize in the case of sparse files). But please correct me if I'm wrong. I'll try to confirm in the next few days. At the moment, I'm still reinstalling my system and FileLight hasn't been reinstalled yet. (And I'm still a bit iffy about installing 1.9 since, as far as I can tell, something in my path structure causes Qt4 versions of FileLight to freeze part way through gathering information) I thought I fixed that freezing bug, I should probably release a new rc now, I've fixed a lot of bugs since the last one. Could you try the SVN version? When I get to it tomorrow or the next day? Sure. I just checked and there is an SVN ebuild, so I have no problem trying that instead. The freezing problem is fixed in SVN, but the "doesn't distinguish sparse files" problem remains. Steps to reproduce: 1. Change to a folder with almost nothing in it (eg. ~/.ssh) 2. touch foo 3. truncate -s 50M foo 4. Compare the output of du and filelight. For all intents and purposes, filelight treats the sparse file as if it were actually taking up 50 MiB while du lists it as consuming the amount of space it actually consumes unless you pass the --apparent-size flag. SVN commit 1134661 by sandsmark: Fix handling of sparse files. Don't fake the reading of blocks used for a file. BUG: 135611 M +3 -9 localLister.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1134661 |