Calculate exclusive and shared sizes when on Btrfs

When on Btrfs*, calculates both the exclusive and shared size of files separately, and indicates that in the UI.

The idea is that people use Filelight to locate files to delete in order to free up space, so the most relevant concept for the user is exclusive space, i.e. what would be freed up if this file were deleted. If most of the total space in the folder is shared, we show a message explaining the situation to the user and suggesting what they should maybe do:

image

(* well, technically this would work on any Linux FS, but it is probably slightly slower than just getting the file size from stat, which is why I made it only do this when on Btrfs. Although it feels plenty fast when I test it.)

Part of kde-linux/kde-linux#666

Merge request reports

Loading
Loading