]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librgw: try-implement rgw_readv/rgw_writev
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 29 Oct 2015 22:03:16 +0000 (18:03 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:05:27 +0000 (12:05 -0500)
commit5139c312f9ef4ba19d9fc46379c0455ac54e0a43
tree78773354d57358af0f7ec4549aa700af74be0714
parent540ce769ceaa860c8d4ff24f4fd2f5adc1ca2abc
librgw: try-implement rgw_readv/rgw_writev

The model in the rgw_readv call is the caller owns the struct rgw_uio,
and uses it to pass uio_offset.

The caller returns the rgw_uio filled out, and provides indirectly
rgw_uio->uio_vio (the full private data is at uio->uio_p1 on return,
the caller (p==private) must not touch it.  The caller returns
private data in rgw_readv_release() when finished.

Meanwhile rgw_writev is atomic.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc
src/test/librgw_file_gp.cc