Sparse files cause malproportioned charts and "usage" reporting

Bug #1530512 reported by Erik Ackermann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
baobab (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When scanning dirs with sparse files, the full file size is used in computing Usage % (in the table) and also for calculating the ring size. Curiously wherever a file size is mentioned (in table or highlighting a ring piece) the dirs allocated size is displayed (same as what `du -hs` would show).

This leads to weird behavior where dirs with similar reported size (in both baobob and du) have wildly different Usage% and ring size if some contain sparse files. It is inconsistent (either both should be allocated size or both be file size), but to match `du` I would argue that allocated size should be used.

I glanced at the code and I think the simple fix would be to change the percent calculation in baobab-scanner.vala from using size to using alloc_size. Likewise in the calculation for charts.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in baobab (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.