linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.34k stars 1.03k forks source link

More splice() testcases #779

Open metan-ucw opened 3 years ago

metan-ucw commented 3 years ago

Recently there were some change in splice() kernel implementation that broke a few cases we did not even consider to test.

commit 14e3e989f6a5d9646b6cf60690499cc8bdc11f7d Author: Linus Torvalds torvalds@linux-foundation.org Date: Sun Dec 27 10:56:33 2020 -0800

proc mountinfo: make splice available again

commit 9bb48c82aced07698a2d08ee0f1475a6c4f6b266 Author: Linus Torvalds torvalds@linux-foundation.org Date: Tue Jan 19 11:41:16 2021 -0800

tty: implement write_iter

We should add coverage at least for splice() on proc files and possibly the tty as well.

richiejp commented 3 years ago

Perhaps we need a "write any FD to and FD", test. Which tests copying data between objects addressable by File Descriptors using various methods.

Some other System calls to consider: readv/writev, tee, vmsplice, mmap

coolgw commented 1 year ago

First case for splice on proc https://patchwork.ozlabs.org/project/ltp/patch/20230817003947.16029-1-wegao@suse.com/

coolgw commented 6 months ago

https://patchwork.ozlabs.org/project/ltp/patch/20230904094501.17371-1-wegao@suse.com/ accept.