]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: add methods to read and write using zero copy
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 21 Oct 2013 19:40:30 +0000 (12:40 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 23 Nov 2013 00:14:03 +0000 (16:14 -0800)
commit3f6fa05d7224f9b04d849c4a5309a3da01d3cb34
tree627b50389b5400476d4084643aa7f8659c22dc34
parent5021b43e0a6ece07b8dd364ce227f60e4916f707
buffer: add methods to read and write using zero copy

Create explicit methods for testing. Make buffer::list::write_fd() use
zero-copy if all the buffers support it.  Don't automatically handle
reads yet, since we need better detection of read length first.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/buffer.cc
src/include/buffer.h
src/test/bufferlist.cc