I want to use fiemap for
- a todo for
cp
|
// TODO Perhaps we can employ the "fiemap ioctl" API to get the |
|
// file extent mappings: |
|
// https://www.kernel.org/doc/html/latest/filesystems/fiemap.html |
- improving performance for
cat, head -c and tail. copy_file_range is slower than splice on the FS without reflink support. uutils/cat doesn't use copy_file_range by the reason while GNU cat supports reflink via copy_file_range. fiemap allows to check that copy_file_range worked as reflink.
https://github.com/lilydjwg/fiemap-rs
There is no other safe-wrapper on rustix currently.
I want to use fiemap for
cpcoreutils/src/uu/cp/src/platform/linux.rs
Lines 172 to 174 in 7b0d6c8
cat,head -candtail.copy_file_rangeis slower than splice on the FS without reflink support.uutils/catdoesn't usecopy_file_rangeby the reason while GNUcatsupports reflink viacopy_file_range. fiemap allows to check that copy_file_range worked as reflink.https://github.com/lilydjwg/fiemap-rs
There is no other safe-wrapper on rustix currently.