]> xenbits.xensource.com Git - libvirt.git/commit
test_driver: implement virDomainGetDiskErrors
authorIlias Stamatis <stamatis.iliass@gmail.com>
Sun, 12 May 2019 23:26:14 +0000 (01:26 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 May 2019 12:34:11 +0000 (14:34 +0200)
commit89320788ac445948649facf76e90761ef0084276
tree6aedf1b1f609c04a00b1fb6bf5b3d1eaa8afccee
parent4faaaa8b27cc78164b68ac7cbd0057472f918335
test_driver: implement virDomainGetDiskErrors

Return the number of disks present in the configuration of the test
domain when called with @errors as NULL and @maxerrors as 0.

Otherwise report an error for every second disk, assigning available
error codes in a cyclic order.

Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/test/test_driver.c