From: Eric Blake <eblake@redhat.com>
To: Anton Kuchin <antonkuchin@yandex-team.ru>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
Max Reitz <mreitz@redhat.com>,
Evgeny Yakovlev <wrfsh@yandex-team.ru>
Subject: Re: [Qemu-devel] [PATCH] block: split block/qapi.c to avoid linking utilities with qapi
Date: Mon, 28 Jan 2019 11:52:48 -0600 [thread overview]
Message-ID: <60bb98e7-ffae-667e-9fb7-57b53003eed6@redhat.com> (raw)
In-Reply-To: <20190128173901.3357-1-antonkuchin@yandex-team.ru>
[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]
On 1/28/19 11:39 AM, Anton Kuchin wrote:
> Only part of block/qapi.c is used by qemu-io qemu-nbd and qemu-img
> and its not realy about QAPI, so move it to separate file to reduce
s/realy/really/
> amount of unused code linked to utilities and avoid unnecessary
> dependencies.
That's a decent start for a good commit message; although giving even
more details about which interfaces are candidates for moving (to make
it easier for future patches to know which of the two files to add to)
would be helpful.
Also, do you have any before/after comparisons, perhaps such as size of
the executables or of 'nm | wc' output, proving that the split makes an
obvious difference?
>
> Signed-off-by: Anton Kuchin <antonkuchin@yandex-team.ru>
> ---
> block.c | 2 +-
> block/Makefile.objs | 3 +-
> block/bdrv_info.c | 582 ++++++++++++++++++++++++++
> block/qapi.c | 553 +-----------------------
> hmp.c | 2 +-
> include/block/{qapi.h => bdrv_info.h} | 6 +-
> monitor.c | 2 +-
> qemu-img.c | 2 +-
> qemu-io-cmds.c | 2 +-
> 9 files changed, 593 insertions(+), 561 deletions(-)
> create mode 100644 block/bdrv_info.c
> rename include/block/{qapi.h => bdrv_info.h} (97%)
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-01-28 18:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 17:39 [Qemu-devel] [PATCH] block: split block/qapi.c to avoid linking utilities with qapi Anton Kuchin
2019-01-28 17:52 ` Eric Blake [this message]
2019-01-31 18:13 ` no-reply
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=60bb98e7-ffae-667e-9fb7-57b53003eed6@redhat.com \
--to=eblake@redhat.com \
--cc=antonkuchin@yandex-team.ru \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=wrfsh@yandex-team.ru \
/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).