Draft: kioworkers: Dissable kernel io cache to ensure status reported correctly

I've seen this issue mentioned a few times and when looking for a solution, I came across the O_DIRECT flag for files and was wandering if this could be a viable solution. The merge is just a proof of concept, nothing is done beside move showcase. Is there any underwater stones I'm not aware of? Otherwise I will start working on proper implementation of this.

Example of moving 128 MiB file over to a USB with max ~25 MiB/s speed.

Before:

before.mkv

File visibly moves instantly, but umount only passes through once file actually transmitted.

After:

after.mkv

File moves with constant max speed of the USB driver.

BUG: 281270

Merge request reports

Loading
Loading