Bug 462753

Summary: BTRFS deduplication is not considered in size calculation when duplicating files/directories
Product: [Frameworks and Libraries] frameworks-kio Reporter: Derek Christ <christ.derek>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Derek Christ 2022-12-07 18:57:28 UTC
SUMMARY
When there is not much space left on the disk, KIO will not try to duplicate (Ctrl+D) files or directories that would take up more space than is left.
On BTRFS, however, due to the deduplication, this operation will not take up any space at all. Therefore KIO falsely aborts a duplicate operation that should be possible.

STEPS TO REPRODUCE
1. Fill up disk
2. Find a file that is bigger than the space left on disk
3. Try to duplicate it (Ctrl+D)

OBSERVED RESULT
Is not duplicated

EXPECTED RESULT
Should be duplicated

SOFTWARE/OS VERSIONS
Is not duplicated

ADDITIONAL INFORMATION
Operating System: openSUSE Tumbleweed 20221206
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.10-1-default (64-bit)