[Libosinfo] [osinfo-db/libosinfo PATCH v4 00/10] Add support to images
Fabiano Fidêncio
fidencio at redhat.com
Fri Nov 23 10:54:34 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 v3:
https://www.redhat.com/archives/libosinfo/2018-November/msg00123.html
- Series have been rebased atop of master
- Tests binaries have been added to gitignore
- Added to test-imageuris the same changes Daniel added to
test-{media,tree}uris with regarding to improve the amount of
failures we have due to OSes' servers
- 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
tests: Add test-image
Introduce OsinfoImageList object
tests: Add test-imagelist
os: Introduce APIs to deal with images
loader: Load Images information
tests: Add test-imageuris
image: Add "cloud-init" attribute to the image
.gitignore | 3 +
osinfo/Makefile.am | 4 +
osinfo/libosinfo.syms | 12 ++
osinfo/osinfo.h | 2 +
osinfo/osinfo_image.c | 277 ++++++++++++++++++++++++++++++++++++++
osinfo/osinfo_image.h | 86 ++++++++++++
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 | 230 +++++++++++++++++++++++++++++++
tests/test-imageuris.c | 154 +++++++++++++++++++++
16 files changed, 1114 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