]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: attempt to size raw_pipe buffers
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 18 Oct 2013 14:46:34 +0000 (07:46 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 23 Nov 2013 00:14:03 +0000 (16:14 -0800)
commitbe29b3471c3f92d28b7aa05449e89ea83603e295
tree5ad7e098185e47c21b74cf72c9010847f3fed082
parent3f6fa05d7224f9b04d849c4a5309a3da01d3cb34
buffer: attempt to size raw_pipe buffers

Make sure the requested length is below the maximum pipe size for now,
since we're only using one pipe and splicing once into and out of
it. The default max is 1MB on recent kernels, so this isn't such a
terrible limitation.

To get around this we could use multiple pipes, or keep both source and
destination fds open at the same time and call splice many times. This
is more usual usage for splice, but would require a lot more work to
restructure the filestore and messenger to handle it.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
configure.ac
src/common/buffer.cc