From 50c74e645928affa1af6e9a5a6ea6a3b9d3c52dc Mon Sep 17 00:00:00 2001 From: Tofik Sonono Date: Tue, 10 Jan 2023 10:04:35 +0000 Subject: Support application-defined I/O functions for FUSE fd The io for FUSE requests and responses can now be further customized by allowing to write custom functions for reading/writing the responses. This includes overriding the splice io. The reason for this addition is that having a custom file descriptor is not sufficient to allow custom io. Different types of file descriptor require different mechanisms of io interaction. For example, some file descriptor communication has boundaries (SOCK_DGRAM, EOF, etc...), while other types of fd:s might be unbounded (SOCK_STREAMS, ...). For unbounded communication, you have to read the header of the FUSE request first, and then read the remaining packet data. Furthermore, the one read call does not necessarily return all the data expected, requiring further calls in a loop. --- test/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/meson.build') diff --git a/test/meson.build b/test/meson.build index 12d3c41..1f5cb53 100644 --- a/test/meson.build +++ b/test/meson.build @@ -15,7 +15,7 @@ td += executable('readdir_inode', 'readdir_inode.c', install: false) test_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py', - 'util.py', 'test_ctests.py' ] + 'util.py', 'test_ctests.py', 'test_custom_io.py' ] td += custom_target('test_scripts', input: test_scripts, output: test_scripts, build_by_default: true, command: ['cp', '-fPp', -- cgit v1.2.3