Skip to content

CopyJob: Add setCopyOption enable options such as UseFsync

Méven Car requested to merge work/meven/copy-fsync-281270 into master

And UseReflink so users can turn off COW copying.

UseFsync can then be used for external drives.

CCBUG: 281270

This might fix other bugs: It allows to eject an usb stick as soon a copy is finished. It actually allow to show how slow the drive/filesystem media takes to write.

Used in system/dolphin!862, Plasma and other applications would need a similar patch to fully cover all the cases.


Open API design questions:

Should I move CopyJob::CopyOption to kio::global ? So I can prevent include propagation.

This is file specific, so we might not want a setter/proper member but just metadata passing instead.

Edited by Méven Car

Merge request reports

Loading