elementary / files

File browser designed for elementary OS
https://elementary.io
GNU General Public License v3.0
324 stars 76 forks source link

Bad reporting on free disk space #1320

Open aquierick opened 4 years ago

aquierick commented 4 years ago

Describe the bug

When selecting on properties for the root directory (the one at the top of the file system where /home is located), the window displays an incorrect value on used disk space and the folder size, however, the information displayed is correct when the data is still loading.

To Reproduce

  1. Open 'Files'.
  2. In the 'Devices' section, select the file system being used by the OS.
  3. Right click in the right part of the window where the directories are displayed.
  4. Select 'Properties'

Expected behavior

When the properties window finishes loading I expected to show the data that it already had while loading.

Screenshots or screen recordings

Screenshot from 2020-05-06 01-03-25@2x

Screenshot from 2020-05-06 09-34-07@2x

Platform Information

image

jeremypw commented 4 years ago

What is happening here is that the total space used exceeds the reported volume size so the available space is negative and rolls over to a huge positive number. The cause of this is FIles counting files in folders mounted at e.g. /media which are not necessary on the same volume or even disk. By contrast, Nautilus ignores folders on mounts.