From: Eric Blake <eblake@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH] qemu-nbd: only send a limited number of errno codes on the wire
Date: Thu, 07 May 2015 11:01:27 -0600 [thread overview]
Message-ID: <554B9A67.60004@redhat.com> (raw)
In-Reply-To: <1431012374-14113-2-git-send-email-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
On 05/07/2015 09:26 AM, Paolo Bonzini wrote:
> Right now, NBD includes potentially platform-specific error values in
> the wire protocol.
>
> Luckily, most common error values are more or less universal: in
> particular, of all errno values <= 34 (up to ERANGE), they are all
> the same on supported platforms except for 11 (which is EAGAIN on
> Windows and Linux, but EDEADLK on Darwin and the *BSDs).
Well, this is not true on GNU Hurd, but to my knowledge no one has tried
to compile qemu on Hurd.
>
> + /* NBD errors should be universally equal to the corresponding
> + * errno values, check it here.
> + */
> + QEMU_BUILD_BUG_ON(EPERM != 1);
And this is (probably not the first place) where qemu compilation would
fail on Hurd. At any rate, I see no reason to hold up the patch on that
ground.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-05-07 17:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 15:26 [Qemu-devel] [PATCH] qemu-nbd: return EROFS for discard on a read-only export Paolo Bonzini
2015-05-07 15:26 ` [Qemu-devel] [PATCH] qemu-nbd: only send a limited number of errno codes on the wire Paolo Bonzini
2015-05-07 17:01 ` Eric Blake [this message]
2015-05-07 17:06 ` Paolo Bonzini
2015-05-08 6:45 ` Markus Armbruster
2015-05-08 8:30 ` Paolo Bonzini
2015-05-08 9:32 ` Markus Armbruster
2015-05-08 9:40 ` Paolo Bonzini
2015-05-08 10:04 ` Markus Armbruster
2015-05-08 12:45 ` Max Reitz
2015-05-08 13:01 ` Max Reitz
2015-05-08 12:43 ` [Qemu-devel] [PATCH] qemu-nbd: return EROFS for discard on a read-only export Max Reitz
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=554B9A67.60004@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).