From: Miklos Szeredi Date: Tue, 25 May 2010 13:06:07 +0000 (+0200) Subject: fuse: support splice() reading from fuse device X-Git-Tag: v2.6.35-rc1~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3021629a0d820247ee12b6c5192a1d5380e21c6;p=pandora-kernel.git fuse: support splice() reading from fuse device Allow userspace filesystem implementation to use splice() to read from the fuse device. The userspace filesystem can now transfer data coming from a WRITE request to an arbitrary file descriptor (regular file, block device or socket) without having to go through a userspace buffer. The semantics of using splice() to read messages are: 1) with a single splice() call move the whole message from the fuse device to a temporary pipe 2) read the header from the pipe and determine the message type 3a) if message is a WRITE then splice data from pipe to destination 3b) else read rest of message to userspace buffer Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed