]> xenbits.xensource.com Git - libvirt.git/commit
conf: Allow error reporting in virDomainDiskSourceIsBlockType
authorJohn Ferlan <jferlan@redhat.com>
Sat, 18 Jul 2015 11:34:34 +0000 (07:34 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 4 Aug 2015 11:19:25 +0000 (07:19 -0400)
commit36025c552cae6c79ab9e54f65e758907845846ac
tree9a751032fc56e07265df642b33fdd5d43e97e808
parent4ae72f131b7eb7e860d4400378f47d5383f13705
conf: Allow error reporting in virDomainDiskSourceIsBlockType

Rather than provide a somewhat generic error message when the API
returns false, allow the caller to supply a "report = true" option
in order to cause virReportError's to describe which of the 3 paths
that can cause failure.

Some callers don't care about what caused the failure, they just want
to have a true/false - for those, calling with report = false should
be sufficient.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_cgroup.c
src/lxc/lxc_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_conf.c