From: Eric Blake <eblake@redhat.com>
To: Alex Bligh <alex@alex.org.uk>, Wouter Verhelst <w@uter.be>
Cc: "nbd-general@lists.sourceforge.net"
<nbd-general@lists.sourceforge.net>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 2/2] Correct definition of NBD_CMD_FLAG_FUA
Date: Thu, 31 Mar 2016 13:14:50 -0600 [thread overview]
Message-ID: <56FD772A.3000900@redhat.com> (raw)
In-Reply-To: <211A7D9C-884C-4F50-964C-22B963B9662C@alex.org.uk>
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
On 03/31/2016 12:21 PM, Alex Bligh wrote:
>
> On 31 Mar 2016, at 19:15, Alex Bligh <alex@alex.org.uk> wrote:
>
>> It is doubtful whether anyone is using NBD_CMD_FLAG_FUA
>> at the moment in any case.
>
> Drat. I spoke too soon. Qemu uses it, but presumably from its
> own .h file.
Yes, qemu has its own nbd.h, which still has nbd_request with a single
uint32_type that holds both flags and command type. It wouldn't be too
hard to rework that to more closely match upstream NBD.
>
> However, it's now nonsensical having it defined as 1<<16 in a
> 16 bit flags variable.
I don't see any problem with your patch on the NBD project side of
things; it's not like 'make install' is dumping a header into
/usr/include for client programs to reuse (which is _why_ qemu is using
its own nbd.h), because no one has really churned out an NBD-client
library for embedding in larger programs.
>
> Should we produce a new name for it (and future command flags)
> that aren't shifted left 16 places, and just maintain the
> current value for compatibility?
I don't see the point. Your fix looks correct.
--
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:[~2016-03-31 19:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 18:15 [Qemu-devel] [PATCH 2/2] Correct definition of NBD_CMD_FLAG_FUA Alex Bligh
2016-03-31 18:21 ` Alex Bligh
2016-03-31 19:14 ` Eric Blake [this message]
2016-03-31 19:25 ` Alex Bligh
2016-03-31 20:07 ` Eric Blake
2016-03-31 20:19 ` Alex Bligh
2016-04-01 7:59 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-04-01 9:32 ` Alex Bligh
2016-04-01 9:43 ` Wouter Verhelst
2016-04-01 10:11 ` Alex Bligh
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=56FD772A.3000900@redhat.com \
--to=eblake@redhat.com \
--cc=alex@alex.org.uk \
--cc=nbd-general@lists.sourceforge.net \
--cc=qemu-devel@nongnu.org \
--cc=w@uter.be \
/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).