[Libosinfo] [libosinfo PATCH 0/3] Add support for resources' inheritance

Fabiano Fidêncio fidencio at redhat.com
Mon Nov 12 14:07:21 UTC 2018


This patch set introduces resources' inheritance for OSes that
derive-from/clone a device that already has its resources set.

While this patch doesn't cause any harm per si, from the moment we start
removing the duplications we'll need a new libosinfo release with this
code included.

https://gitlab.com/libosinfo/osinfo-db/issues/15

Fabiano Fidêncio (3):
  os: Add _get_.*_resources_without_inheritance()
  os: Add support for Resources inheritance
  test-os: Add test_resources_inheritance()

 osinfo/Makefile.am                            |  1 +
 osinfo/osinfo_os.c                            | 85 ++++++++++++++++-
 osinfo/osinfo_os_private.h                    | 39 ++++++++
 .../test-os-resources-inheritance-1.xml       | 25 +++++
 .../test-os-resources-inheritance-2.xml       | 10 ++
 tests/test-os.c                               | 91 +++++++++++++++++++
 6 files changed, 247 insertions(+), 4 deletions(-)
 create mode 100644 osinfo/osinfo_os_private.h
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-1.xml
 create mode 100644 tests/dbdata/os/libosinfo.org/test-os-resources-inheritance-2.xml

-- 
2.19.1




More information about the Libosinfo mailing list