[libvirt] [PATCH 0/2] Add support for 'raw' block driver to Qemu JSON backend parsing code

Tomáš Golembiovský posted 2 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1487026405.git.tgolembi@redhat.com
src/util/virstoragefile.c | 51 +++++++++++++++++++++++++++++++++++++----------
tests/virstoragetest.c    |  6 ++++++
2 files changed, 47 insertions(+), 10 deletions(-)
[libvirt] [PATCH 0/2] Add support for 'raw' block driver to Qemu JSON backend parsing code
Posted by Tomáš Golembiovský 7 years, 2 months ago
The raw driver is not very interesting on its own but it can be layered on top
of other block drivers. New parameters that allow using only part of the
underlying file/device were recently added to Qemu. This is useful e.g. to
directly access partitions inside a disk image or disks inside an archive (like
OVA).

This feature is utilised in OVA import in virt-v2v tool where we access the
disks directly in OVA without needing to unpack the tar archive first. After
implementing this in virt-v2v we noticed that it does not work when libguestfs
uses libvirt as a backend because libvirt fails with error:

    internal error: missing parser implementation for JSON backing volume driver 'raw'

Tomáš Golembiovský (2):
  util: storage: split function for JSON backing volume parsing in two
  util: storage: add JSON backing volume parser 'raw' block driver

 src/util/virstoragefile.c | 51 +++++++++++++++++++++++++++++++++++++----------
 tests/virstoragetest.c    |  6 ++++++
 2 files changed, 47 insertions(+), 10 deletions(-)

-- 
2.11.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 0/2] Add support for 'raw' block driver to Qemu JSON backend parsing code
Posted by Tomáš Golembiovský 7 years, 2 months ago
Hi,

gentle reminder.

Thanks,

    Tomas

On Mon, 13 Feb 2017 23:53:41 +0100
Tomáš Golembiovský <tgolembi@redhat.com> wrote:

> The raw driver is not very interesting on its own but it can be layered on top
> of other block drivers. New parameters that allow using only part of the
> underlying file/device were recently added to Qemu. This is useful e.g. to
> directly access partitions inside a disk image or disks inside an archive (like
> OVA).
> 
> This feature is utilised in OVA import in virt-v2v tool where we access the
> disks directly in OVA without needing to unpack the tar archive first. After
> implementing this in virt-v2v we noticed that it does not work when libguestfs
> uses libvirt as a backend because libvirt fails with error:
> 
>     internal error: missing parser implementation for JSON backing volume driver 'raw'
> 
> Tomáš Golembiovský (2):
>   util: storage: split function for JSON backing volume parsing in two
>   util: storage: add JSON backing volume parser 'raw' block driver
> 
>  src/util/virstoragefile.c | 51 +++++++++++++++++++++++++++++++++++++----------
>  tests/virstoragetest.c    |  6 ++++++
>  2 files changed, 47 insertions(+), 10 deletions(-)
> 
> -- 
> 2.11.1
> 


-- 
Tomáš Golembiovský <tgolembi@redhat.com>

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list