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

Tomáš Golembiovský tgolembi at redhat.com
Mon Feb 13 22:53:41 UTC 2017

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

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(-)


More information about the libvir-list mailing list