[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 06/22] qemu-nbd: Use raw block driver for --offset
From: |
Max Reitz |
Subject: |
Re: [RFC PATCH 06/22] qemu-nbd: Use raw block driver for --offset |
Date: |
Mon, 17 Aug 2020 12:56:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 13.08.20 18:29, Kevin Wolf wrote:
> Instead of implementing qemu-nbd --offset in the NBD code, just put a
> raw block node with the requested offset on top of the user image and
> rely on that doing the job.
>
> This does not only simplify the nbd_export_new() interface and bring it
> closer to the set of options that the nbd-server-add QMP command offers,
> but in fact it also eliminates a potential source for bugs in the NBD
> code which previously had to add the offset manually in all relevant
> places.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> include/block/nbd.h | 4 ++--
> blockdev-nbd.c | 9 +--------
> nbd/server.c | 34 +++++++++++++++++-----------------
> qemu-nbd.c | 27 ++++++++++++---------------
> 4 files changed, 32 insertions(+), 42 deletions(-)
Reviewed-by: Max Reitz <mreitz@redhat.com>
signature.asc
Description: OpenPGP digital signature
- Re: [RFC PATCH 04/22] block/export: Add BlockExport infrastructure and block-export-add, (continued)
Re: [RFC PATCH 04/22] block/export: Add BlockExport infrastructure and block-export-add, Eric Blake, 2020/08/19
[RFC PATCH 05/22] qemu-storage-daemon: Use qmp_block_export_add(), Kevin Wolf, 2020/08/13
[RFC PATCH 06/22] qemu-nbd: Use raw block driver for --offset, Kevin Wolf, 2020/08/13
Re: [RFC PATCH 06/22] qemu-nbd: Use raw block driver for --offset, Eric Blake, 2020/08/19
[RFC PATCH 07/22] block/export: Remove magic from block-export-add, Kevin Wolf, 2020/08/13
Re: [RFC PATCH 07/22] block/export: Remove magic from block-export-add, Eric Blake, 2020/08/19