Andrea Bolognani 40204c05c5 util: Report error in virFileWrapperFdClose()
libvirt_iohelper is used internally by the virFileWrapperFd APIs;
more specifically, in the QEMU driver we have the doCoreDump() and
qemuDomainSaveMemory() helper functions as users, and those in turn
end up being called by the implementation of several driver APIs.

By calling virReportError() if libvirt_iohelper has failed, we
overwrite whatever generic error message QEMU might have raised
with the more useful one generated by the helper program.

After this commit, the user will be able to see the error directly
instead of having to dig in the journal or libvirtd log.

https://bugzilla.redhat.com/show_bug.cgi?id=1578741

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-02-25 16:34:37 +01:00
..
2018-08-24 13:23:36 +02:00
2019-02-22 10:05:45 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-01-28 14:46:58 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2018-05-29 15:42:03 +02:00