qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	Stefan Weil <sw@weilnetz.de>,
	qemu-devel@nongnu.org, pve-devel@pve.proxmox.com,
	pbonzini@redhat.com, josh.durgin@inktank.com,
	ceph-devel@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] use int64_t for return values from rbd instead of int
Date: Thu, 22 Nov 2012 08:40:15 +0000	[thread overview]
Message-ID: <CAFEAcA86AomWmobTObpw80rMNWM30JzAKqHZXWxmB48+GU3VYQ@mail.gmail.com> (raw)
In-Reply-To: <50ADE115.4060707@profihost.ag>

On 22 November 2012 08:23, Stefan Priebe - Profihost AG
<s.priebe@profihost.ag> wrote:
> Am 21.11.2012 23:32, schrieb Peter Maydell:
>> Looking at the librbd API (which is what the size and ret
>> values come from), it uses size_t and ssize_t for these.
>> So I think probably ssize_t is the right type for ret
>> (and size) in our structs here.
>
>
> This sounds reasonable but does ssize_t support negative values? For error
> values.

Yes, the first 's' in ssize_t means 'signed' and is the
difference between it and size_t.

-- PMM

  reply	other threads:[~2012-11-22  8:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20 12:44 [Qemu-devel] [PATCH] use int64_t for return values from rbd instead of int Stefan Priebe
2012-11-20 16:29 ` Stefan Hajnoczi
2012-11-20 19:16   ` Stefan Priebe
2012-11-21  6:41     ` Stefan Hajnoczi
2012-11-21  7:47       ` Stefan Priebe - Profihost AG
2012-11-21  8:26         ` Stefan Hajnoczi
2012-11-21  8:33           ` Stefan Priebe - Profihost AG
2012-11-21  8:43             ` Stefan Hajnoczi
2012-11-21 17:03 ` Stefan Weil
2012-11-21 20:53   ` Stefan Priebe - Profihost AG
2012-11-21 22:32   ` Peter Maydell
2012-11-22  8:23     ` Stefan Priebe - Profihost AG
2012-11-22  8:40       ` Peter Maydell [this message]
2012-11-22  9:08         ` Stefan Priebe - Profihost AG
  -- strict thread matches above, loose matches on Subject: below --
2012-11-21 21:26 Stefan Weil

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=CAFEAcA86AomWmobTObpw80rMNWM30JzAKqHZXWxmB48+GU3VYQ@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=josh.durgin@inktank.com \
    --cc=pbonzini@redhat.com \
    --cc=pve-devel@pve.proxmox.com \
    --cc=qemu-devel@nongnu.org \
    --cc=s.priebe@profihost.ag \
    --cc=stefanha@gmail.com \
    --cc=sw@weilnetz.de \
    /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;
as well as URLs for NNTP newsgroup(s).