All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ecryptfs: make splice write available again
@ 2022-08-31  3:35 Yangtao Li
  2022-11-17 17:57 ` Yangtao Li
  0 siblings, 1 reply; 2+ messages in thread
From: Yangtao Li @ 2022-08-31  3:35 UTC (permalink / raw)
  To: code; +Cc: ecryptfs, linux-kernel, Yangtao Li

Since 5.10, splice() or sendfile() return EINVAL.  This was
caused by commit 36e2c7421f02 ("fs: don't allow splice read/write
without explicit ops").

This patch initializes the splice_write field in file_operations, like
most file systems do, to restore the functionality.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 fs/ecryptfs/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c
index 18d5b91cb573..d070ca0fac2b 100644
--- a/fs/ecryptfs/file.c
+++ b/fs/ecryptfs/file.c
@@ -421,4 +421,5 @@ const struct file_operations ecryptfs_main_fops = {
 	.fsync = ecryptfs_fsync,
 	.fasync = ecryptfs_fasync,
 	.splice_read = generic_file_splice_read,
+	.splice_write = iter_file_splice_write,
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ecryptfs: make splice write available again
  2022-08-31  3:35 [PATCH] ecryptfs: make splice write available again Yangtao Li
@ 2022-11-17 17:57 ` Yangtao Li
  0 siblings, 0 replies; 2+ messages in thread
From: Yangtao Li @ 2022-11-17 17:57 UTC (permalink / raw)
  To: frank.li; +Cc: code, ecryptfs, linux-kernel, linux-fsdevel

ping......

Does anyone maintain this file system?

Thx,
Yangtao

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-17 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31  3:35 [PATCH] ecryptfs: make splice write available again Yangtao Li
2022-11-17 17:57 ` Yangtao Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.