DataDog / glommio

Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.
Other
2.93k stars 161 forks source link

Implement copy_file_range operation #620

Closed vlovich closed 7 months ago

vlovich commented 8 months ago

What does this PR do?

copy_file_range is a convenient way to COW blocks within the same filesystem.

Motivation

I want to utilize reflinks to copy data between files. Ideally at some point in the future this will get integrated into io_uring instead of being a blocking syscall (https://github.com/axboe/liburing/issues/831).

Related issues

Additional Notes

Checklist

X] I have added unit tests to the code I am submitting [] My unit tests cover both failure and success scenarios [] If applicable, I have discussed my architecture