]> xenbits.xensource.com Git - libvirt.git/commit
conf: Sort cache banks in capabilities XML
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 10 Nov 2017 12:19:31 +0000 (13:19 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
commitb4698edcb0a459332b24410f59698005af37eecb
treea1189db5a9ed33213690caa38737a260eef91457
parentbaca005367cf60743f67df44440fc316e6d20c19
conf: Sort cache banks in capabilities XML

Because the cache banks are initialized based on the order in which their
respective directories exist on the filesystem, they can appear in different
order.  This is here mainly for tests because the cache directory might have
different order of children nodes and tests would fail otherwise.  It should not
be the case with sysfs, but one can never be sure.  And this does not take
almost any extra time, mainly because it gets initialized once per driver.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/capabilities.c