[Libosinfo] [libosinfo PATCH v3 00/10] Add support to images

Fabiano Fidêncio fidencio at redhat.com
Wed Nov 14 14:49:41 UTC 2018


This patchset adds support to images entries as part of the "os" entry
in order to allow Apps to have access to the Images URLs (and that's the
only usage planned for now).

An example of how the XML will look like is:
<os>
  <image arch="x86_64" format="raw" cloud-init="true">
    <variant id="cloud"/>
    <url>https://download/foo/bar.img</url>
  </image>
</os>

Mind that both variant element and cloud-init attribute are optional and
the supported formats are: raw, qcow2, vmdk, vhdx.

- Changes since v2:
  https://www.redhat.com/archives/libosinfo/2018-November/msg00009.html
  - Added the format and cloud-init attributes to the image element, as
    suggested by Fabian Deutsch and Martin Sívak

- Changes since v1:
  https://www.redhat.com/archives/libosinfo/2018-October/msg00153.html
  - Dropped the osinfo_db_image_create_from_location() and
    osinfo_db_identify_image() APIs as we've agreed to leave those bits
    for libguestfs :-) Consequently, libguestfs dependancy has been
    dropped.


- osinfo-db:
  Fabiano Fidêncio (2):
    schema: Add support for pre-installed images
    schema: Add cloud-init attribute to images

   data/schema/osinfo.rng.in | 41 +++++++++++++++++++++++++++++++++++++++
   1 file changed, 41 insertions(+)

- libosinfo:
  Fabiano Fidêncio (8):
    Introduce OsinfoImage object
    Introduce OsinfoImageList object
    os: Introduce APIs to deal with images
    loader: Load Images information
    tests: Add test-image
    tests: Add test-imagelist
    tests: Add test-imageuris
    image: Add "cloud-init" attribute to the image

   osinfo/Makefile.am        |   4 +
   osinfo/libosinfo.syms     |  14 ++
   osinfo/osinfo.h           |   2 +
   osinfo/osinfo_image.c     | 294 ++++++++++++++++++++++++++++++++++++++
   osinfo/osinfo_image.h     |  93 ++++++++++++
   osinfo/osinfo_imagelist.c |  90 ++++++++++++
   osinfo/osinfo_imagelist.h |  77 ++++++++++
   osinfo/osinfo_loader.c    |  50 +++++++
   osinfo/osinfo_os.c        |  37 +++++
   osinfo/osinfo_os.h        |   4 +
   po/POTFILES.in            |   1 +
   tests/Makefile.am         |  15 ++
   tests/test-image.c        |  72 ++++++++++
   tests/test-imagelist.c    | 228 +++++++++++++++++++++++++++++
   tests/test-imageuris.c    | 150 +++++++++++++++++++
   15 files changed, 1131 insertions(+)
   create mode 100644 osinfo/osinfo_image.c
   create mode 100644 osinfo/osinfo_image.h
   create mode 100644 osinfo/osinfo_imagelist.c
   create mode 100644 osinfo/osinfo_imagelist.h
   create mode 100644 tests/test-image.c
   create mode 100644 tests/test-imagelist.c
   create mode 100644 tests/test-imageuris.c
-- 
2.19.1




More information about the Libosinfo mailing list