generic: test splice() with pipes

Andreas Grünbacher reports that on the two filesystems that support
iomap directio, it's possible for splice() to return -EAGAIN (instead of
a short splice) if the pipe being written to has less space available in
its pipe buffers than the length supplied by the calling process.

This is a regression test to check for correct operation. Kernel
needs commit 3253d9d09337 ("splice: only read in as much information
as there is pipe buffer space") to pass.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Darrick J. Wong
2019-12-03 18:37:24 -08:00
committed by Eryu Guan
parent 8c9705b798
commit 568920df38
6 changed files with 225 additions and 1 deletions
+1
View File
@@ -113,6 +113,7 @@
/src/runas
/src/seek_copy_test
/src/seek_sanity_test
/src/splice-test
/src/stale_handle
/src/stat_test
/src/swapon