From: Markus Armbruster <armbru@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Alberto Garcia <berto@igalia.com>,
Max Reitz <mreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v10 09/16] block: Add QMP support for streaming to an intermediate layer
Date: Tue, 11 Oct 2016 18:50:27 +0200 [thread overview]
Message-ID: <871szm96ek.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <5a38945a-a764-1dcf-2a5b-495b6d131f9b@redhat.com> (Eric Blake's message of "Tue, 11 Oct 2016 10:53:36 -0500")
Eric Blake <eblake@redhat.com> writes:
> On 10/11/2016 09:57 AM, Kevin Wolf wrote:
>> Should we introduce a new, clean blockdev-stream command that fixes this
>> and matches the common name pattern? Of course, block-stream vs.
>> blockdev-stream could be a bit confusing, too...
>>
>
> A new command is easy to introspect (query-commands), lets us get rid of
> cruft, and makes it obvious that we support everything from the get-go.
> I'm favoring that option, even if it leads to slightly confusing names
> of the deprecated vs. the new command.
Let's take a step back and consider extending old commands vs. adding
new commands.
A new command is trivial to detect in introspection.
Command extensions are not as trivial to detect in introspection. Many
extensions are exposed in query-qmp-schema, but not all.
Back when QMP was young, Anthony argued for always adding new commands,
never extend existing ones. I opposed it, because it would lead to a
confusing mess of related commands, unreadable or incomplete
documentation, and abysmal test coverage.
However, the other extreme is also unwise: we shouldn't shoehorn new
functionality into existing commands just because we can. We should ask
ourselves questions like these:
* Is the extended command still a sane interface? If writing clear
documentation for it is hard, it perhaps isn't. Pay special attention
to failure modes. Overloaded arguments are prone to confusing errors.
* How will the command's users use the extension? If it requires new
code paths, a new command may be more convenient for them.
next prev parent reply other threads:[~2016-10-11 16:50 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-06 13:02 [Qemu-devel] [PATCH v10 00/16] Support streaming to an intermediate layer Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 01/16] block: Pause all jobs during bdrv_reopen_multiple() Alberto Garcia
2016-10-10 15:37 ` Kevin Wolf
2016-10-10 16:41 ` Paolo Bonzini
2016-10-11 9:39 ` Kevin Wolf
2016-10-11 9:54 ` Paolo Bonzini
2016-10-11 11:07 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 02/16] block: Add block_job_add_bdrv() Alberto Garcia
2016-10-10 15:46 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 03/16] block: Use block_job_add_bdrv() in mirror_start_job() Alberto Garcia
2016-10-10 16:03 ` Kevin Wolf
2016-10-11 8:20 ` Paolo Bonzini
2016-10-11 13:46 ` Alberto Garcia
2016-10-11 14:01 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 04/16] block: Use block_job_add_bdrv() in backup_start() Alberto Garcia
2016-10-12 13:47 ` Kevin Wolf
2016-10-12 13:57 ` Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 05/16] block: Check blockers in all nodes involved in a block-commit job Alberto Garcia
2016-10-12 13:47 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 06/16] block: Block all nodes involved in the block-commit operation Alberto Garcia
2016-10-12 13:54 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 07/16] block: Block all intermediate nodes in commit_active_start() Alberto Garcia
2016-10-12 14:06 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 08/16] block: Support streaming to an intermediate layer Alberto Garcia
2016-10-12 14:23 ` Kevin Wolf
2016-10-12 14:33 ` Alberto Garcia
2016-10-12 14:45 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 09/16] block: Add QMP support for " Alberto Garcia
2016-10-10 19:09 ` Eric Blake
2016-10-11 14:30 ` Alberto Garcia
2016-10-11 14:57 ` Kevin Wolf
2016-10-11 15:53 ` Eric Blake
2016-10-11 16:50 ` Markus Armbruster [this message]
2016-10-12 9:11 ` Kevin Wolf
2016-10-12 9:25 ` Alberto Garcia
2016-10-11 16:32 ` Markus Armbruster
2016-10-12 9:28 ` Alberto Garcia
2016-10-12 12:17 ` Markus Armbruster
2016-10-12 14:30 ` Kevin Wolf
2016-10-12 14:48 ` Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 10/16] docs: Document how to stream " Alberto Garcia
2016-10-12 14:39 ` Kevin Wolf
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 11/16] qemu-iotests: Test streaming " Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 12/16] qemu-iotests: Test block-stream operations in parallel Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 13/16] qemu-iotests: Test overlapping stream and commit operations Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 14/16] qemu-iotests: Test block-stream and block-commit in parallel Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 15/16] qemu-iotests: Add iotests.supports_quorum() Alberto Garcia
2016-10-06 13:02 ` [Qemu-devel] [PATCH v10 16/16] qemu-iotests: Test streaming to a Quorum child Alberto Garcia
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=871szm96ek.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.