[LTP] [PATCH v4] syscalls/copy_file_range: add/restructured tests

Amir Goldstein amir73il@gmail.com
Mon May 20 18:45:16 CEST 2019


On Mon, May 20, 2019 at 6:24 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi,
>
> > > 2) Glibc adds internal implementation of copy_file_range(), used as fallback
> > > when kernel < 4.5 (which brought copy_file_range()) [1]. I guess there is no way
> > > to use it explicitly :(.
>
> > Well we can always use filesystem that does not support the operation,
> > so running the test for all filesystems should get the emulation covered
> > for sure...
> Oh, that's the way :).

Actually, there is no such thing as filesystem that does not support
copy_file_range() because the kernel provides a fallback default implementation
(in-kernel copy).

> Merged then, thanks for your patch, Christian.
>

I was going to ask that you drop the EXDEV test, because I am working on a path
set to relax the cross-device constraint.
Oh well. I will post a patch to remove that test case once my code is merged.

Thanks,
Amir.


More information about the ltp mailing list