All of lore.kernel.org
 help / color / mirror / Atom feed
* Rados and user-provided buffers
@ 2013-09-18 19:57 Rutger ter Borg
  2013-09-18 20:01 ` Sage Weil
  0 siblings, 1 reply; 6+ messages in thread
From: Rutger ter Borg @ 2013-09-18 19:57 UTC (permalink / raw)
  To: ceph-devel


Dear all,

I've a question regarding buffers in rados (using the C++ API). I'm 
allocating and using my own buffers, and would like to read and write 
directly into and from them. I'm using a bufferlist consisting of 
static_buffers, which are passed to Rados' aio_read and aio_write.

For aio_write, rados works as expected, i.e., the bufferlist is returned 
as it was before the call. However, when doing aio_read, it seems that 
the bufferlist is destroyed (not used) in the call, despite all the 
buffers being static.

Is this expected behaviour? I read a thread "read/write on RADOS using 
external buffer" from this mailing list from 2010, but wasn't able to 
figure out whether rados does or doesn't support reading into 
user-provided static_buffers.

Thanks in advance,
Cheers,

Rutger




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

end of thread, other threads:[~2013-09-19 12:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 19:57 Rados and user-provided buffers Rutger ter Borg
2013-09-18 20:01 ` Sage Weil
2013-09-18 20:31   ` Rutger ter Borg
2013-09-18 20:52     ` Sage Weil
2013-09-19  9:28       ` Rutger ter Borg
2013-09-19 12:39         ` Rutger ter Borg

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.