提交 6c78973d 编写于 作者: J Jan Kara

udf: Support splicing to file

Add explicit support for splicing from pipe to file through
iter_file_splice_write(). Commit 36e2c742 ("fs: don't allow splice
read/write without explicit ops") removed the default .splice_write
operation which effectively removed UDF support for splicing from pipe.

Fixes: 36e2c742 ("fs: don't allow splice read/write without explicit ops")
Reported-by: Nkernel test robot <yujie.liu@intel.com>
Link: https://lore.kernel.org/r/202209081443.593ab12-yujie.liu@intel.comSigned-off-by: NJan Kara <jack@suse.cz>
上级 d4d361ad
...@@ -252,6 +252,7 @@ const struct file_operations udf_file_operations = { ...@@ -252,6 +252,7 @@ const struct file_operations udf_file_operations = {
.release = udf_release_file, .release = udf_release_file,
.fsync = generic_file_fsync, .fsync = generic_file_fsync,
.splice_read = generic_file_splice_read, .splice_read = generic_file_splice_read,
.splice_write = iter_file_splice_write,
.llseek = generic_file_llseek, .llseek = generic_file_llseek,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册