From: Peter Krempa <pkrempa@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org,
"reviewer:Incompatible changes" <libvir-list@redhat.com>,
thuth@redhat.com, vsementsov@virtuozzo.com,
qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [libvirt] [PATCH] qemu-nbd: Deprecate qemu-nbd --partition
Date: Thu, 24 Jan 2019 08:57:30 +0100 [thread overview]
Message-ID: <20190124075730.GB1838@andariel.pipo.sk> (raw)
In-Reply-To: <20190123211953.28578-1-eblake@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
On Wed, Jan 23, 2019 at 15:19:53 -0600, Eric Blake wrote:
> The existing qemu-nbd --partition code claims to handle logical
> partitions up to 8, since its introduction in 2008 (commit 7a5ca86).
> However, the implementation is bogus (actual MBR logical partitions
> form a sort of linked list, with one partition per extended table
> entry, rather than four logical partitions in a single extended
> table), making the code unlikely to work for anything beyond -P5 on
> actual guest images. What's more, the code does not support GPT
> partitions, which are becoming more popular, and maintaining device
> subsetting in both NBD and the raw device is unnecessary maintenance
> burden. And nbdkit has just added code to properly handle an
> arbitrary number of MBR partitions, along with its existing code
> for handling GPT partitions.
>
> Note that obtaining the offsets of a partition can be learned by
> using 'qemu-nbd -c /dev/nbd0 file.qcow2 && sfdisk --dump /dev/nbd0',
> but by the time you've done that, you might as well just mount
> /dev/nbd0p1 that the kernel creates for you.
>
> Start the clock on the deprecation cycle, with an example of how
> to write device subsetting without using -P.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
> qemu-deprecated.texi | 27 +++++++++++++++++++++++++++
> qemu-nbd.texi | 6 ++++--
> qemu-nbd.c | 2 ++
> 3 files changed, 33 insertions(+), 2 deletions(-)
Libvirt does not use qemu-nbd in any way so it's okay from our POV.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2019-01-24 8:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-23 21:19 [Qemu-devel] [PATCH] qemu-nbd: Deprecate qemu-nbd --partition Eric Blake
2019-01-23 21:55 ` Richard W.M. Jones
2019-01-23 22:18 ` Eric Blake
2019-01-23 22:25 ` Richard W.M. Jones
2019-01-24 7:57 ` Peter Krempa [this message]
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=20190124075730.GB1838@andariel.pipo.sk \
--to=pkrempa@redhat.com \
--cc=eblake@redhat.com \
--cc=libvir-list@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=vsementsov@virtuozzo.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 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).