]> xenbits.xensource.com Git - libvirt.git/commit
xen_xm: Split the per-disk logic from xenParseXMDisk()
authorFabiano Fidêncio <fabiano@fidencio.org>
Sun, 27 May 2018 22:28:20 +0000 (00:28 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 11 Jun 2018 08:17:15 +0000 (10:17 +0200)
commit5d358df82aaa1f5e8418133e72e64976dce96d18
treebad6017686e259fd5fb856601be4741678235982
parent057a78ea3177c149be171326795a28d23fc5ee85
xen_xm: Split the per-disk logic from xenParseXMDisk()

xenParseXMDisk() does a lot of stuff and, in order to make things
cleaner, let's split it in two new functions:
- xenParseXMDisk(): it's a new function that keeps the old name. It's
responsible for the whole per-disk logic from the old xenParseXMDisk();
- xenParseXMDiskList(): it's basically the old xenParseXMDisk(), but
now it just iterates over the list of disks, calling xenParseXMDisk()
per each disk.

This patch is basically preparing the ground for the future when
typesafe virConf acessors will be used.

Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/xenconfig/xen_xm.c