Bug 457363

Summary: Btrfs compressed file show only actual size and not size on disk
Product: [Applications] dolphin Reporter: ttv200
Component: panels: informationAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, nate
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ttv200 2022-08-01 09:08:07 UTC
when using btrfs filesystem with mount option compress the file size is the uncompressed size
please add "file size on disk" option in information panel / properties of the file

how to reproduce:
* create btrfs partition
* mount with -o compress
* dd if=/dev/zero of=/mnt/btrfs/file bs=1M count=500
* compsize file
more info:
https://btrfs.readthedocs.io/en/latest/Compression.html
https://superuser.com/questions/1138670/how-do-i-tell-if-an-individual-file-is-compressed-in-btrfs