On 07/23/2012 08:59 AM, Rutger ter Borg wrote:
On 06/27/2012 05:22 PM, Sage Weil wrote:
There is a get_return_value() method on the AioCompletion that gives you
bytes read (for reads). For write operations, it is always 0
(success) or
an error code.
Thanks for the info. Maybe a bit of a newbie question, but in that case,
how do I detect a read error, given an AioCompletion object?
It's the same as with writes - if there's an error, get_return_value
will give you the negative error code (i.e. -ENOENT, -EPERM, etc).
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html