[PATCH v2 0/2] finish qemu-nbd --partition deprecation

Eric Blake posted 2 patches 5 years, 8 months ago
Test FreeBSD passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test docker-quick@centos7 passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200123164650.1741798-1-eblake@redhat.com
Maintainers: Eric Blake <eblake@redhat.com>
docs/interop/qemu-nbd.rst |  15 ++---
qemu-deprecated.texi      |  49 ++++++--------
qemu-nbd.c                | 133 +-------------------------------------
3 files changed, 24 insertions(+), 173 deletions(-)
[PATCH v2 0/2] finish qemu-nbd --partition deprecation
Posted by Eric Blake 5 years, 8 months ago
Based-on: <20200116141511.16849-1-peter.maydell@linaro.org>
(0/3 convert qemu-nbd, qemu-block-drivers to rST)

In v2:
- rebased on top of rST doc changes
- patch 1 added

Eric Blake (2):
  docs: Fix typo in qemu-nbd -P replacement
  qemu-nbd: Removed deprecated --partition option

 docs/interop/qemu-nbd.rst |  15 ++---
 qemu-deprecated.texi      |  49 ++++++--------
 qemu-nbd.c                | 133 +-------------------------------------
 3 files changed, 24 insertions(+), 173 deletions(-)

-- 
2.24.1


Re: [PATCH v2 0/2] finish qemu-nbd --partition deprecation
Posted by Eric Blake 5 years, 8 months ago
ping

On 1/23/20 10:46 AM, Eric Blake wrote:
> Based-on: <20200116141511.16849-1-peter.maydell@linaro.org>
> (0/3 convert qemu-nbd, qemu-block-drivers to rST)
> 
> In v2:
> - rebased on top of rST doc changes
> - patch 1 added
> 
> Eric Blake (2):
>    docs: Fix typo in qemu-nbd -P replacement
>    qemu-nbd: Removed deprecated --partition option
> 
>   docs/interop/qemu-nbd.rst |  15 ++---
>   qemu-deprecated.texi      |  49 ++++++--------
>   qemu-nbd.c                | 133 +-------------------------------------
>   3 files changed, 24 insertions(+), 173 deletions(-)
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Re: [PATCH v2 0/2] finish qemu-nbd --partition deprecation
Posted by Max Reitz 5 years, 7 months ago
On 31.01.20 18:11, Eric Blake wrote:
> ping

Do you want further review or is Ján’s sufficient for you?

Also, I wonder whether it would make a good GSoC/Outreachy/... project
to add partition reading support to the raw block driver, or whether
that’s a bad idea. O:-)

Max

Re: [PATCH v2 0/2] finish qemu-nbd --partition deprecation
Posted by Eric Blake 5 years, 7 months ago
On 2/19/20 4:53 AM, Max Reitz wrote:
> On 31.01.20 18:11, Eric Blake wrote:
>> ping
> 
> Do you want further review or is Ján’s sufficient for you?

Commit 0bc16997 has already landed, so no further review will show in 
git history. But you're always welcome to raise issues that might result 
in follow-up patches.

> 
> Also, I wonder whether it would make a good GSoC/Outreachy/... project
> to add partition reading support to the raw block driver, or whether
> that’s a bad idea. O:-)

Personally, I think that since nbdkit already provides a good partition 
filter [1], any other implementation of a partition filter is duplicated 
effort.  The only reason to teach qemu how to access an arbitrary 
partition is if it makes serving that arbitrary partition to a guest 
more efficient than what is currently possible by pointing qemu at an 
NBD server run by nbdkit with its partition filter.  But in general, you 
are more likely to want qemu to serve an entire disk image file to the 
guest (and let the guest interpret partitions embedded within that file) 
than to have qemu serve a single partition to a guest (and have the 
guest treat that partition as a bare disk), so I don't see it as 
something that would be frequently used or needed in qemu.

[1] http://libguestfs.org/nbdkit-partition-filter.1.html

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org