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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux