CEPH filesystem development
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@inktank.com>
To: Rutger ter Borg <rutger@terborg.net>
Cc: ceph-devel@vger.kernel.org
Subject: Re: [rados] Asynchronous operations
Date: Mon, 23 Jul 2012 09:07:20 -0700	[thread overview]
Message-ID: <500D76B8.1070705@inktank.com> (raw)
In-Reply-To: <jujscq$sug$1@dough.gmane.org>

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).


      reply	other threads:[~2012-07-23 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27  7:32 [rados] Asynchronous operations Rutger ter Borg
2012-06-27 15:22 ` Sage Weil
2012-07-23 15:59   ` Rutger ter Borg
2012-07-23 16:07     ` Josh Durgin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=500D76B8.1070705@inktank.com \
    --to=josh.durgin@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=rutger@terborg.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox