Skip to content

Wrong Allocated Size for Sparse Files if Read from Cache File #184

@spacekpe

Description

@spacekpe

Hello,

and thank you for an awesome software and all the work you put into it over the years!

Here is a bug report about the latest version:

Version:

  • qdirstat 1.8
  • qt5-base 5.15.2

Observed behavior:

  • Sparse files are detected correctly when scanning filesystem from GUI
  • Apparent and allocated sparse file sizes seem to be written correctly to .qdirstat.cache.gz file generated from GUI
  • GUI displays incorrect Allocated size when reading cache file generated by itself

Reproducer:

  • generate sparse file
dd if=/dev/zero of=sparse count=1 seek=100 bs=1M
  • generate cache file of the directory either in GUI or using
qdirstat-cache-writer .
  • load the cache file into the GUI

  • Screenshot of "live scan" - sizes are okay:
    screenshot-ok-live

  • Screenshot of cache read - allocated size is incorrect:
    screenshot-bad-cache

  • cache file to reproduce the problem:
    .qdirstat.cache.gz

Please let me know what other information you need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions